SA-MP Forums Archive
Question about compiler - 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: Question about compiler (/showthread.php?tid=244264)



Question about compiler - Jimbo01 - 26.03.2011

i have 2 different gamemodes if i compile them one of them shows this

Код:
Header size:           8784 bytes
Code size:          1166340 bytes
Data size:          2576396 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5768 cells (23072 bytes)
Total requirements: 3767904 bytes
and the other one just shows this

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Whats that ? Whats wrong ?


Re: Question about compiler - Stigg - 26.03.2011

Your arrays are to big, overused space.

Код:
new string[128];
format(string, 128, "HELLO");



Re: Question about compiler - itachi4x4 - 26.03.2011

The second one is good, what it that first one about? the Gamemode?


Re: Question about compiler - Jochemd - 26.03.2011

Stigg ++

Probably your arrays are I.E. new string[256]; just for normal SendClientMessage's.


Re: Question about compiler - Sinner - 26.03.2011

Maybe you accidentally created a large array, anything over [1024] won't work (not recommended though)


Re: Question about compiler - Jimbo01 - 26.03.2011

should i just change all 256 to 128 ?


Re: Question about compiler - Jochemd - 26.03.2011

Yeah, do that