The server crashes when executing this?
#3

Ah, thanks, it worked. The reason it was formatting a string was because the problem popped up when it was supposed to send the message to all online players.


Ack, tried changing it back to sending it to everyone with the following code:

if(strcmp(tmp, "!ABORT", true) == 0)
{
if(SERVER_SHUTDOWN_STARTED == 0)
return SendClientMessage(playerid, COLOR_RED_LIGHT, "{ADMIN} There is no timed shutdown in effect");

KillTimer(SERVER_SHUTDOWN_STARTED);
format(str, 128, "{ADMIN} '%s'[ID:%d] has cancelled the timed server shutdown.", name, playerid);
SendClientMessageToAll(COLOR_YELLOW, str);
return 1;
}

It still crashed. Guess I have to deal with only the admin getting the message.
Reply


Messages In This Thread
The server crashes when executing this? - by NovaParadox - 21.05.2009, 20:08
Re: The server crashes when executing this? - by Joske_Vermeulen - 21.05.2009, 20:12
Re: The server crashes when executing this? - by NovaParadox - 21.05.2009, 20:16
Re: The server crashes when executing this? - by Joske_Vermeulen - 21.05.2009, 20:20
Re: The server crashes when executing this? - by Joske_Vermeulen - 21.05.2009, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)