SA-MP Forums Archive
What the hell ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What the hell ? (/showthread.php?tid=101119)



What the hell ? - UsaBoy91 - 08.10.2009

http://files.uploadffs.com/c/c669c2b9/wtf.PNG

gf.amx got 2.128KB


Re: What the hell ? - UsaBoy91 - 08.10.2009

unknown ?

Header size: 9976 bytes
Code size: 2201116 bytes
Data size: 4137068 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 6364544 bytes


Re: What the hell ? - Correlli - 08.10.2009

Your script is using too much memory, there are some ways to fix that but the best way is to read ******'s code optimization topic.
http://forum.sa-mp.com/index.php?topic=79810.0


Re: What the hell ? - Peter_Corneile - 08.10.2009

I dont think that will cause any problem if the memory is too much (Correct me if i am wrong)


Re: What the hell ? - UsaBoy91 - 08.10.2009

Oh , i read , i changed all the 256 string , i checked all for / while loops .. but still don't work


Re: What the hell ? - Zeex - 08.10.2009

Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
I dont think that will cause any problem if the memory is too much (Correct me if i am wrong)
The dynamic memory (that used for local variables) is limited and when it's not enough the compiler warns. If you ignore that fact some parts of your script may not work or it will cause crashes.


Re: What the hell ? - Peter_Corneile - 08.10.2009

Quote:
Originally Posted by ZeeX
Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
I dont think that will cause any problem if the memory is too much (Correct me if i am wrong)
The dynamic memory (that used for local variables) is limited and when it's not enough the compiler warns. If you ignore that fact some parts of your script may not work or it will cause crashes.
Thanks for telling eh , much appreciated


Re: What the hell ? - dice7 - 08.10.2009

you can do #pragma dynamic 7000000 on top of your script, but i suggest reading ****** topic


Re: What the hell ? - Peter_Corneile - 08.10.2009

Quote:
Originally Posted by dice7
you can do #pragma dynamic 7000000 on top of your script, but i suggest reading ****** topic
Well i hate #pragma lol .. I would prefer ******


Re: What the hell ? - Correlli - 08.10.2009

Quote:
Originally Posted by dice7
you can do #pragma dynamic 7000000 on top of your script, but i suggest reading ****** topic
That's not the best way. ******'s method is much more useful.