BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: Gonido on March 21, 2008, 12:02:06 am

Title: Undefined offset: 1 in G:\Anarchy Online\Bot\Bebot\StartBot.php on line 74
Post by: Gonido on March 21, 2008, 12:02:06 am
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 :-)
Title: Re: Undefined offset: 1 in G:\Anarchy Online\Bot\Bebot\StartBot.php on line 74
Post by: Alreadythere on March 21, 2008, 11:53:13 am
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.
Title: Re: Undefined offset: 1 in G:\Anarchy Online\Bot\Bebot\StartBot.php on line 74
Post by: Gonido on March 21, 2008, 10:10:04 pm
Thanks for your help, it worked when i removed it.
Title: Re: Undefined offset: 1 in G:\Anarchy Online\Bot\Bebot\StartBot.php on line 74
Post by: Alreadythere on March 21, 2008, 10:54:56 pm
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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal