SA-MP Forums Archive
Iter_Random - 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_Random (/showthread.php?tid=658956)



Iter_Random - CodeStyle175 - 17.09.2018

Iter_Random doesn't return -1 when iterator is empty


Re: Iter_Random - Calisthenics - 17.09.2018

https://github.com/pawn-lang/YSI-Inc.../impl.inc#L107

If the iterator is empty, it returns INVALID_ITERATOR_SLOT which is defined as cellmin.


Re: Iter_Random - CodeStyle175 - 17.09.2018

k tnx
so iter_free also returns INVALID_ITERATOR_SLOT, if iterator is full?