[Iterator] Is there a way to add a value which is more than the iter's size?
#1

Код:
new Iterator:tots<5>;

Iter_Add(tots, 1);
Iter_Add(tots, 4);
Iter_Add(tots, 6);

foreach(new i: tots)
	printf("%d", i);
Output
Код:
1
4
I need it such that I can add values outside of its size.
Reply
#2

Nevermind. Found the answer.

http://forum.sa-mp.com/showthread.ph...22#post2554322
Reply
#3

Quote:
Originally Posted by iSpark
Посмотреть сообщение
Код:
new Iterator:tots<5>;

Iter_Add(tots, 1);
Iter_Add(tots, 4);
Iter_Add(tots, 6);

foreach(new i: tots)
	printf("%d", i);
Output
Код:
1
4
I need it such that I can add values outside of its size.
I think you have a wrong concept of how iterators works, you should read any tutorial
https://sampforum.blast.hk/showthread.php?tid=571159
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)