Iter_Free ID: 0
#1

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
Reply
#2

Just fill the ID 0 by default:
pawn Код:
Iter_Add( Iterator, 0 );
then it will be always full, so Iter_Free will return at least 1.
Reply
#3

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
Just fill the ID 0 by default:
pawn Код:
Iter_Add( Iterator, 0 );
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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)