14.11.2010, 08:03
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:
and return for exmple 4
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);