collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Undefined offset: 1 in G:\Anarchy Online\Bot\Bebot\StartBot.php on line 74  (Read 5040 times)

0 Members and 1 Guest are viewing this topic.

Offline Gonido

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Hi all,

This is my first try running a bebot and i'm having this error. I read the wiki on the installation but couldn't find anything about that line 74 on startbot.php ...

What should i put in it ?!

Here is the default line i got

Quote
$last_line = system($php_bin . $php_args . " " . $main_php . " " . $argv[1]);

Thanks for your help :-)

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
If it's just a warning feel free to ignore it.

Basically the script is accessing the first parameter of the call php StartBot.php par1. Which isn't always set.

If it's an error remove the last part of the system call " " . $argv[1], this should remove the warning.

Offline Gonido

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Thanks for your help, it worked when i removed it.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
That parameter is used to detect which bot should be started if you got multiple bots under one directory structure. As long as you are only running one bot it's not really important.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 405
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal