SA-MP Forums Archive
What does this mean? - 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 does this mean? (/showthread.php?tid=69640)



What does this mean? - max007 - 19.03.2009

Hi, i have BIG gamemode (about 40000 lines and no i didnt put a phone list to it...)
Problem is that sudendly it started to write this when compiling:

Header size: 6512 bytes
Code size: 1203716 bytes
Data size: 3084324 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4072 cells (16288 bytes)
Total requirements: 4310936 bytes

WTF is problem? Pls help...


Re: What does this mean? - max007 - 19.03.2009

Quote:
Originally Posted by Westie
Your code is producing a larger than anticipated stack. This can be used by avoiding very large arrays, but can be avoided by setting the '#pragma dynamic XX' directive - which changes the stack size, where XX is how many bytes are needed.
Is it big problem, what can happen, how can i fix it? :X pls help me

And what is that thing with pragma? :X


Re: What does this mean? - max007 - 19.03.2009

Omg i m such a noob in pragma... i dont understand that.... blocks thing and all :X i have #pragma tabsize 0 and i have only 3 warnings, when i set #pragma tabsize 1 or #pragma dinamic (whatever... 1 or 55 or 99999999) i got 1800 or 3600 warnings.. i just dont understand that thing.. oh man.. pls help me


Re: What does this mean? - max007 - 20.03.2009

Pls help me,


Re: What does this mean? - Think - 20.03.2009

dont use #pragma tabsize, only use #pragma dynamic 32000 keep it like that and no 'error'


Re: What does this mean? - max007 - 20.03.2009

yeah no error but 1715 Warnings. xD "loose indentation"


Re: What does this mean? - Think - 20.03.2009

Quote:
Originally Posted by max007
yeah no error but 1715 Warnings. xD "loose indentation"
fix your indent.

EDIT found this:

http://sourceforge.net/projects/pawnstudio