What this means?
#1

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 
Reply
#2

******: "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
Reply
#3

so it will harm the script ?
Reply
#4

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)