foreach Iter_Add is not adding elements
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
Unfortunately yes, you are doing something wrong. The number after an iterator doesn't define its SIZE but its RANGE:

pawn Код:
static Iterator:Spawns<MAX_MAP_SPAWNS>;    // <300>
This declaration says that "Spawns" can hold values between 0 and 299, not 300 of any value. If you just want to put a load of values in a container and loop over them use regular arrays.
Ah, figures Thanks a lot.
Reply


Messages In This Thread
foreach Iter_Add is not adding elements - by Sinner - 03.06.2013, 10:02
Re: foreach Iter_Add is not adding elements - by Sinner - 03.06.2013, 10:49

Forum Jump:


Users browsing this thread: 4 Guest(s)