[Iterator] Is there a way to add a value which is more than the iter's size? - 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: [Iterator] Is there a way to add a value which is more than the iter's size? (
/showthread.php?tid=655925)
[Iterator] Is there a way to add a value which is more than the iter's size? -
iSpark - 02.07.2018
Код:
new Iterator:tots<5>;
Iter_Add(tots, 1);
Iter_Add(tots, 4);
Iter_Add(tots, 6);
foreach(new i: tots)
printf("%d", i);
Output
I need it such that I can add values outside of its size.
Re: [Iterator] Is there a way to add a value which is more than the iter's size? -
iSpark - 02.07.2018
Nevermind. Found the answer.
http://forum.sa-mp.com/showthread.ph...22#post2554322
Re: [Iterator] Is there a way to add a value which is more than the iter's size? -
Gr00t - 02.07.2018
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
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