BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Foxy on April 10, 2006, 06:33:24 pm
-
Keep getting following msg:
[2006-04-10 11:52:55] [BUDDY] [LOG] Enforcon logged [on]
Fatal error: Cannot use string offset as an array in C:\BeBot_v0.2.3\modules\Log
on_GUILD.php on line 113
C:\BeBot_v0.2.3>pause
Press any key to continue . . .
only thing i have changed is: bot.php
/*
Check if person is a member of the bot
function is_member($uname)
{
$result = $this -> db -> select("SELECT nickname FROM members WHERE id = " . $this -> aoc -> get_uid($uname));
if (!empty($result))
return 1;
$result = $this -> db -> select("SELECT id FROM guests WHERE id = " . $this -> aoc -> get_uid($uname));
if (!empty($result))
return 2;
return false;
}*/
function is_member($uname)
{
return 1;
}
to remove is member
-
Enforcon is a member
-
also get
Warning: array_key_exists(): The second argument should be either an array or an
object in C:\BeBot_v0.2.3\IRC\SmartIRC.php on line 1948
-
It's not the is_member function breaking the script when he logs on. You changed it to return a 1 no matter what so anyone who gets noticed by the bot is a member basically.
What version of PHP and MySQL are you running and what does your Line 113 look like? I've done some custom work on my Logon_GUILD.php so it probably differs from yours.