Iter_Free ID: 0 - 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: Iter_Free ID: 0 (
/showthread.php?tid=604523)
Iter_Free ID: 0 -
Sensation - 06.04.2016
Hi all. I am using y_iterate include. It start searching freeslot( Iter_Free(blabla) ) from ID: 0. How can I start this from ID: 1
Re: Iter_Free ID: 0 -
IstuntmanI - 06.04.2016
Just fill the ID 0 by default:
then it will be always full, so Iter_Free will return at least 1.
Re: Iter_Free ID: 0 -
Sensation - 06.04.2016
Quote:
Originally Posted by IstuntmanI
Just fill the ID 0 by default:
then it will be always full, so Iter_Free will return at least 1.
|
But it will appear on loops, is it? I dont want it to appear on loops
Re: Iter_Free ID: 0 -
IstuntmanI - 06.04.2016
It will. You can't do it in any other way, you could check in the loop that if it is at 0 to continue. Anyway, you should just start from 0.