Pawn can't handle 2 loops?
#7

it's probably because you're using <= instead of <, so..

Код:
for(new i=0; i <= 10; i++)
{
	print("Loop1");
}
for(new s=0; s <= 10; s++)
{
	print("Loop2");
}
the code above will print loop1 and loop2 eleven times. (0, 1, ..., 9, 10)

if you used < instead, it would perform the loop from 0 to 9

to your problem, it's probably:
Код:
if(pickupid == gFPickup[i])
imagine this would do gFPickup[FACTIONS], if FACTIONS would be 10, and you defined gFPickup like this:
Код:
new gFPickup[FACTIONS];
the code would abort at that point


Hope you understand that, I'm kinda tired
Reply


Messages In This Thread
Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 09:54
Re: Pawn can't handle 2 loops? - by [HiC]TheKiller - 31.01.2010, 09:59
Re: Pawn can't handle 2 loops? - by ray187 - 31.01.2010, 10:16
Re: Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 11:59
Re: Pawn can't handle 2 loops? - by ray187 - 31.01.2010, 12:07
Re: Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 12:18
Re: Pawn can't handle 2 loops? - by Streetplaya - 31.01.2010, 12:20
Re: Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 13:44
Re: Pawn can't handle 2 loops? - by ray187 - 31.01.2010, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)