28.12.2017, 12:41
I get this error in server_log
Code:
line 47499
Код:
[15:36:14] [debug] Run time error 4: "Array index out of bounds" [15:36:14] [debug] AMX backtrace: [15:36:14] [debug] #0 00052c98 in TimestampToDate (Timestamp=1435, &year=@029a644c 2017, &month=@029a6450 13, &day=@029a6454 1, &hour=@029a6458 15, &minute=@029a645c 23, &second=@029a6460 55, HourGMT=2, MinuteGMT=0) at D:\gamemode\pawno\include\timestamptodate.inc:89 [15:36:14] [debug] #1 0030037c in public bancheck (playerid=1) at D:\gamemode\gamemodes\gmextreme.pwn:47499
Код:
format(string,sizeof(string),"This account (%s) is banned!",playername); SendClientMessage(playerid, COLOR_RED, string); format(string,sizeof(string),"Banned by: %s, reason: %s.",admin,reason); SendClientMessage(playerid, COLOR_GENANNOUNCE, string); TimestampToDate(time,date[0],date[1],date[2],date[3],date[4],date[5],2); format(string,sizeof(string),"Ban will expire on %02d.%02d.%02d-%02d:%02d:%02d.",date[2],date[1],date[0],date[3],date[4],date[5]); SendClientMessage(playerid, COLOR_GENANNOUNCE, string); SendClientMessage(playerid, COLOR_GENANNOUNCE, "Poti posta o cerere de unban pe http://xtreme-s.ro daca consideri ca ai luat ban degeaba."); GameTextForPlayer(playerid, "Banned", 5000, 2); KickEx(playerid);
Код:
format(string,sizeof(string),"Ban will expire on %02d.%02d.%02d-%02d:%02d:%02d.",date[2],date[1],date[0],date[3],date[4],date[5]);