17.11.2015, 16:26
Quote:
Yeah. I think it's related to the month being December. It starts with month 1 and adds one for every full month if can substract from the timestamp, ending up in 13 where the max is 12. I will take a closer look later.
|
Код:
17:24:34] [debug] Run time error 4: "Array index out of bounds" [17:24:34] [debug] Accessing element at index 12 past array upper bound 11 [17:24:34] [debug] AMX backtrace: [17:24:34] [debug] #0 0000ab54 in TimestampToDate (Timestamp=1474, &year=@00076298 2015, &month=@00076294 12, &day=@00076290 2, &hour=@0007628c 16, &minute=@00076284 24, &second=@00076288 34, HourGMT=0, MinuteGMT=0) at C:\Users\Redirect Left\Desktop\Sumo\SC2\maps\include\datetime.inc:90 [17:24:34] [debug] #1 0003753c in public BanPlayerIRC (playerid=0, Reason[]=@00072748 "prior failed bans [Speed/Airbreak]", IRCName[]=@00072730 "Timid", bantime=1449073474) at C:\Users\Redirect Left\Desktop\Sumo\SC2\script\SumoCore2_upd3.inc:3731
Код:
TimestampToDate(bantime,year,month,day,hour,minute,second,0); format(string,sizeof(string),"Date of Unban: %d/%d/%d at %d:%d:%d (DD/MM/YY at HH:MM:SS UTC+1)",day,month,year,hour,minute,second);
What is the fix for this? It's currently totally breaking my banning system unless bans are set to expire before DEC.