SA-MP Forums Archive
What this means? - 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: What this means? (/showthread.php?tid=452372)



What this means? - nor15 - 21.07.2013

After i compile , this appear

PHP код:
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
Header size
:          10956 bytes
Code size
:           490248 bytes
Data size
:         17872620 bytes
Stack
/heap size:      16384 bytesestimated maxusageunknowndue to recursion
Total requirements
:18390208 bytes 



Re: What this means? - ThePhenix - 21.07.2013

******: "This means that the compiler has detected that you are using more stack/heap space than is available."

https://sampforum.blast.hk/showthread.php?tid=55261


Re: What this means? - nor15 - 21.07.2013

so it will harm the script ?


Re: What this means? - Tayab - 21.07.2013

I don't know the deep part of this, but as far as I have experienced is that it doesn't do anything with the server such as crashing or e.t.c but it's always good thing to keep yourself away of those warnings.

Here is a nice little example of formatting.

Код:
new str [ 128 ];

format ( str , sizeof ( str ) , "Welcome %s", pName(playerid) );
The way I like to do this formatting is that I'd roughly count the number of letters which doesn't go in the %s and put up in the [] part and after that if I am formatting someone's name I'd do something like this.

Код:
new  str [ 12 + MAX_PLAYER_NAME ]
That works good for me.

From what ****** says, the chat box can only hold upto 128 characters. So if that is issue with there, you might need to compromise and start using another ClientMessage. Hope that helps!