foreach
#1

how to get total of elements in foreach iteration

Exemple i have iteration Player how to get total of players ?

If i have iteration 'Wef'

Iter_Add(Wef,0);
Iter_Add(Wef,1);
Iter_Add(Wef,2);
Iter_Add(Wef,3);


Exist function for get total of elements in the iteration ?

Exmple:
Код:
new total = Iter_Elements(Wef);
printf(" iteration have %d elements",total);
and return for exmple 4
Reply
#2

You should post in the foreach topic... the topic deserves more exposure by bumping.

Anyways, to answer your question you use Itter_Count(name) as documented in the foreach topic itself; so for example you would do Itter_Count(Wef).
Reply
#3

Uhm, thx man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)