YSI gives high amx 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: YSI gives high amx size? (
/showthread.php?tid=445421)
YSI gives high amx size? -
JaKe Elite - 21.06.2013
When i use any of YSI library includes.
The amx script size gets higher. Or sometimes it becomes 5,000kb. While the pwn has 12kb.
If i remove YSI the amx size goes down.
I really need help. I've to recompile scripts which that time has 900kb (FunGaming) but now when i compile it.
It gives 6,000kb AMX Size. Anyway if you're going to ask me what is the version of YSI i'm using. The 3.1 which is synced development i think?
Re: YSI gives high amx size? -
kristo - 21.06.2013
Don't include the whole YSI, only the includes you need.
Re: YSI gives high amx size? -
DaRk_RaiN - 21.06.2013
YSI includes are big, try to open Y_INI.inc for example, it's about 1.4k lines, not to mention multi demention arrays (not sure if exists in YSI a lot).
So yea nothing wrong with your compiling size.
ADD: don't use #include <YSI>
Just include the part of YSI you need, for example #include <YSI\Y_INI>
Re: YSI gives high amx size? -
JaKe Elite - 21.06.2013
No i don't think it is ordinary.
I'm trying to create a filterscript which uses YSI.
For Example
And if i use some of INI_Int, INI_String or INI_ParseFile and add some variables.
The amx size become so huge.
Re: YSI gives high amx size? -
DaRk_RaiN - 21.06.2013
Arrays? if you have something like new v_array[500][500]; that will take memory.