31.01.2010, 12:20
it's probably because you're using <= instead of <, so..
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:
imagine this would do gFPickup[FACTIONS], if FACTIONS would be 10, and you defined gFPickup like this:
the code would abort at that point
Hope you understand that, I'm kinda tired
Код:
for(new i=0; i <= 10; i++)
{
print("Loop1");
}
for(new s=0; s <= 10; s++)
{
print("Loop2");
}
if you used < instead, it would perform the loop from 0 to 9
to your problem, it's probably:
Код:
if(pickupid == gFPickup[i])
Код:
new gFPickup[FACTIONS];
Hope you understand that, I'm kinda tired

