Question about y_iterate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about y_iterate (
/showthread.php?tid=554452)
Question about y_iterate -
dominik523 - 03.01.2015
Hey all! I have one quick question. I want for example create iterator with 10 slots and it will hold player IDs.
If I got it right from ******' examples on the official thread of foreach, default value of each slot in iterator is 0 right?
So how could I create an iterator with default values of i.e. -1 so I can store values inside that can begin with 0?
Thanks four your time. Cheers!
EDIT: I was thinking about foreach in a wrong way. So, solved, I guess.