21.05.2009, 20:16
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.
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.

