17.12.2017, 09:13
Hello guys, I have this problem with my cheats report on my server.
I get this error:
I get this error because I have this function in my global timer (1sec):
The line is this
How can I fix?
I get this error:
Код:
[11:23:23] [debug] Run time error 4: "Array index out of bounds" [11:23:23] [debug] AMX backtrace: [11:23:23] [debug] #0 001140c0 in public misc_timer () at D:\gamemode\gamemodes\exgaming.pwn:16718
Код:
foreach(new k : Cheateri) { if(Cheaters[k][cheatValid] && (gettime()-Cheaters[k][cheatTime]) >= 240) { Cheaters[k][cheatValid] = 0; Cheaters[k][cheatPlayer] = INVALID_PLAYER_ID; Cheaters[k][cheatCheater] = INVALID_PLAYER_ID; Cheaters[k][cheatTime] = 0; new cur = k; Iter_SafeRemove(Reporturi, cur, k); } }
Код:
if(Cheaters[k][cheatValid] && (gettime()-Cheaters[k][cheatTime]) >= 240)