I want to know what is that for - 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: I want to know what is that for (
/showthread.php?tid=496850)
I want to know what is that for -
tysanio - 24.02.2014
I got this ervery time i Complie any GM
PHP код:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 6280 bytes
Code size: 493016 bytes
Data size: 945324 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4246 cells (16984 bytes)
Total requirements: 1461004 bytes
Or
PHP код:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
I Want to know wtf... is the Header,Code,Data size Stack/heap size and the total requirements
Because learn something new is good for the eyes ^^
Re: I want to know what is that for -
Lordzy - 24.02.2014
It's because you got higher stack size which also means the size of an array you declared. For example, if you're doing like this under a callback:
pawn Код:
public OnPlayerConnect(playerid)
{
new myArray[1000], myArray2[2000], myArray3[3000]; //In case if arrays of big sizes are declared, such message will be given.
return 1;
}
You can also avoid it warning using
#pragma dynamic <size>
Re: I want to know what is that for -
Yves - 24.02.2014
i been getting the same issue with this i didn't mind it at all but usefu,
Re: I want to know what is that for -
Konstantinos - 24.02.2014
You get those information because of the flag. For example, compiling your scripts with -d3 gives those results and it also gives more information about server crashes/run time errors (from the crashdetect plugin).
Quote:
Originally Posted by Lordz™
It's because you got higher stack size which also means the size of an array you declared. For example, if you're doing like this under a callback:
pawn Код:
public OnPlayerConnect(playerid) { new myArray[1000], myArray2[2000], myArray3[3000]; //In case if arrays of big sizes are declared, such message will be given. return 1; }
You can also avoid it warning using #pragma dynamic <size>
|
When the messages pops up by itself (without using -d3 flag), then it's because the estimated max. usage is unknown due to recursion. As long as you don't get run time errors such as 'Stack/heap collision (insufficient stack size)' etc. you don't have to worry, nor use
#pragma dynamic.