21.05.2009, 20:08
if(strcmp(tmp, "!ABORT", true) == 0)
{
if(SERVER_SHUTDOWN_STARTED == 0) {SendClientMessage(playerid, COLOR_RED_LIGHT, "{ADMIN} There is no timed shutdown in effect"); return 1; }
KillTimer(SERVER_SHUTDOWN_STARTED);
format(str, 128, "{ADMIN} The timed server shutdown has been aborted.", name, playerid);
SendClientMessage(playerid, COLOR_YELLOW, str);
return 1;
}
For some reason it crashes when sending the message to the client?
{
if(SERVER_SHUTDOWN_STARTED == 0) {SendClientMessage(playerid, COLOR_RED_LIGHT, "{ADMIN} There is no timed shutdown in effect"); return 1; }
KillTimer(SERVER_SHUTDOWN_STARTED);
format(str, 128, "{ADMIN} The timed server shutdown has been aborted.", name, playerid);
SendClientMessage(playerid, COLOR_YELLOW, str);
return 1;
}
For some reason it crashes when sending the message to the client?