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

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

Author Topic: Fatal error then pause  (Read 1711 times)

0 Members and 1 Guest are viewing this topic.

Offline Foxy

  • BeBot User
  • **
  • Posts: 37
  • Karma: +0/-0
Fatal error then pause
« on: April 10, 2006, 06:33:24 pm »
Keep getting following msg:


Code: [Select]
[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

Code: [Select]

/*
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

Offline Foxy

  • BeBot User
  • **
  • Posts: 37
  • Karma: +0/-0
Re: Fatal error then pause
« Reply #1 on: April 10, 2006, 06:34:20 pm »
Enforcon is a member

Offline Foxy

  • BeBot User
  • **
  • Posts: 37
  • Karma: +0/-0
Re: Fatal error then pause
« Reply #2 on: April 10, 2006, 06:40:46 pm »
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

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: Fatal error then pause
« Reply #3 on: April 13, 2006, 05:38:14 pm »
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.
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 211
  • 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