SA-MP Forums Archive
Server Crash - Printable Version

+- SA-MP Forums Archive (
+-- Forum: SA-MP Scripting and Plugins (
+--- Forum: Scripting Help (
+---- Forum: Help Archive (
+---- Thread: Server Crash (/showthread.php?tid=82971)

Server Crash - zallomallo - 21.06.2009

First, here is my code:
pawn Код:
if(!strcmp(cmd, "/time")) {
  if(!IsPlayerInAnyVehicle(playerid) && !PlayerData[Clock][playerid]) {
  SendClientMessage(playerid, Red1, "Error: You do not have a clock.");
  return 1;
    format(string, sizeof(string), "%s checks the time.");
    //format(string, sizeof(string), "~g~|~w~%d:%d~g~|", GameHour, GameMinute);
    format(string, sizeof(string), "%d %d", GameHour, GameMinute);
    GameTextForPlayer(playerid, string, 6000, 1);
    return 1;
Whenever I use /time, my server crashes. Any ideas? Thanks.

Re: Server Crash - XPlatform - 21.06.2009

format(string, sizeof(string), "%s checks the time.");
There isn't a variable to be formatted into the string.

Re: Server Crash - zallomallo - 21.06.2009

Its always the simple mistakes, thanks