SA-MP Forums Archive
Which is the difference between these includes? - 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: Which is the difference between these includes? (/showthread.php?tid=403124)



Which is the difference between these includes? - JavoDiaz - 29.12.2012

Which is the difference between


pawn Код:
#include <foreach>
AND
pawn Код:
#include <YSI/y_iterate>

They weight of both files are different!

foreach (45KB)
y_iterate (35KB)



I hope you can help me


Re: Which is the difference between these includes? - zSuYaNw - 29.12.2012

foreach
Faast loopings.


Iterate
manipulate integeers.


Re: Which is the difference between these includes? - [HiC]TheKiller - 29.12.2012

y_iterate is just foreach in the YSI library. It's probably smaller that foreach because some of the things in YSI are already defined / functions already there so it will be smaller.

https://sampforum.blast.hk/showthread.php?pid=1696956#pid1696956
Go down to y_iterate.


Re: Which is the difference between these includes? - JavoDiaz - 29.12.2012

Thank you so much TheKiller!