SA-MP Forums Archive
Pawn Compiler Help - 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: Pawn Compiler Help (/showthread.php?tid=359766)



Pawn Compiler Help - leongrdic - 15.07.2012

Hi, I am making a RP gamemode, and there is no Warnings and/or Errors, and until yesterday, my pawn compiler "reported" just this:

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
But now, i get this:

Код:
Header size:           8868 bytes
Code size:          1238064 bytes
Data size:         61819512 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4117 cells (16468 bytes)
Total requirements:63082828 bytes
Can somebody explain me what that is??

Thanks!


Re: Pawn Compiler Help - Avi57 - 15.07.2012

thats not a problem !
its that script is very big


Re: Pawn Compiler Help - Niko_boy - 15.07.2012

not really i have observed it happens becasue of use of long length in cell size
e.g. new str[5000] will give this error


Re: Pawn Compiler Help - Babul - 15.07.2012

go to the pawno-menu "Build", > "Run options", and in the 3rd box "With these parameters:", add "-S 8192" to the already existing "-r", so it becomes
Код:
-r -S8192
pay attention not to write a lowercase "-s", it has to b be "-S"


Re: Pawn Compiler Help - leongrdic - 15.07.2012

Huh, this last post, I will try that.. I am not on computer right now...

I have string with [922] cause it has about 922 characters.


Re: Pawn Compiler Help - GSRP - 15.07.2012

Hmm. That is weird. I got this same thing on my compiler when I just added "break;" in the wrong spot by accident. So large local arrays might not be an only cause?


Re: Pawn Compiler Help - Babul - 16.07.2012

yes, a large switch/case statement, tons of if/else-if's, any recursioon (functions calling functions/themself in the worst case) can cause that... concerning strings: i got some [4096] string sizes, and yes, they ARE being used


Re: Pawn Compiler Help - TheArcher - 16.07.2012

I dont even think how is possible to use huge cell size beside for MySQL? (if used)