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
#2

foreach(new k : Player) {
Reply
#3

Quote:
Originally Posted by IvanElistratov
Посмотреть сообщение
foreach(new k : Player) {
I use Iterators man


bump
Reply
#4

What value is printed by crashlog?
Reply
#5

Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)