Array index out of bonus
#1

Hello guys, I have this problem with my cheats report on my server.

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
I get this error because I have this function in my global timer (1sec):
Код:
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);
		}
	}
The line is this
Код:
if(Cheaters[k][cheatValid] && (gettime()-Cheaters[k][cheatTime]) >= 240)
How can I fix?
Reply


Messages In This Thread
Array index out of bonus - by RedGun2015 - 17.12.2017, 09:13
Re: Array index out of bonus - by IvanElistratov - 17.12.2017, 14:19
Re: Array index out of bonus - by RedGun2015 - 18.12.2017, 16:58
Re: Array index out of bonus - by raydx - 18.12.2017, 17:15
Re: Array index out of bonus - by RedGun2015 - 23.12.2017, 20:32

Forum Jump:


Users browsing this thread: 2 Guest(s)