Author Topic: Checker Function crashes server  (Read 4563 times)

0 Members and 1 Guest are viewing this topic.

bigbigger9

  • Gnoll Fighter
  • **
  • Posts: 73
  • Reputation: +0/-0
Checker Function crashes server
« on: September 23, 2003 02:02 am CDT »
I got a little check function that crashes the server when it runs. It looks like:

function blah(%player, %time)
{ if(Client::getName(%player))
   { blahCheck(); }
schedule("blah(%player, %time);", %time);
}

That's it simplified pretty much. Whenever it runs, it crashes the server, but the console says everything's fine and normal. (I'm just basing it's crashing because the client's connection times out) Any ideas?

Thanks in advance. :)
« Last Edit: December 31, 1969 06:00 pm CST by bigbigger9 »
~bigbigger9

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #1 on: September 23, 2003 05:41 am CDT »
Whats %time?

If it is undefined besides in the function header, that would be why it is crashing.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

bigbigger9

  • Gnoll Fighter
  • **
  • Posts: 73
  • Reputation: +0/-0
(No subject)
« Reply #2 on: September 23, 2003 06:18 pm CDT »
%time is just in the function, it'd become defined when the function is executed, example: blah(2049, 3);
« Last Edit: December 31, 1969 06:00 pm CST by bigbigger9 »
~bigbigger9

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #3 on: September 23, 2003 06:44 pm CDT »
What I'm saying is that if you don't specify %time when the function is executed, it WILL crash the server..
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

bigbigger9

  • Gnoll Fighter
  • **
  • Posts: 73
  • Reputation: +0/-0
(No subject)
« Reply #4 on: September 24, 2003 11:06 am CDT »
Ah, well, yes, I did specify it, and it still crashed. Think you could suggest something that you know wouldn't crash it?
« Last Edit: December 31, 1969 06:00 pm CST by bigbigger9 »
~bigbigger9

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #5 on: September 24, 2003 12:03 pm CDT »
Try an actual number.. See if that changes anything..
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"