SA-MP Forums Archive
warning Header Size - 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: warning Header Size (/showthread.php?tid=505175)



warning Header Size - qmnty - 07.04.2014

I need help for my warning...

What is this mean?

pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          13036 bytes
Code size:           896584 bytes
Data size:         11886176 bytes
Stack/heap size:      40000 bytes; estimated max. usage=10829 cells (43316 bytes)
Total requirements:12835796 bytes
Anyone can help?


Re: warning Header Size - Flake. - 07.04.2014

Means you've exceed the recommended amount of memory use, your script will still work.

Someones been
pawn Код:
new string[256]
making a lot of unneeded cells.


Re: warning Header Size - iBanner - 07.04.2014

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
Means you've exceed the recommended amount of memory use, your script will still work.

Someones been
pawn Код:
new string[256]
making a lot of unneeded cells.
Hi. How about if the text is more than 256? should I move to 512?

And how does it affect the server?


Re: warning Header Size - iZN - 07.04.2014

This isn't a warning. It arises when you've compiled with -d2 or -d3 flag (debugging flags). Open up \pawno\pawn.cfg and remove any -d2 or -d3.

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


Re: warning Header Size - qmnty - 08.04.2014

Hmm...

Thanks for the help guys..

But..
Is it will affect to my server when i was turn it On?


Re: warning Header Size - iBanner - 08.04.2014

Maybe I got blind or what. But I couldn't find a sample if a text/string is more than 256? What operation should I use? Like strcat or strtok?


Re: warning Header Size - Flake. - 08.04.2014

Quote:
Originally Posted by iBanner
Посмотреть сообщение
Maybe I got blind or what. But I couldn't find a sample if a text/string is more than 256? What operation should I use? Like strcat or strtok?
What? 256 isn't the problem here the problem is unused cells, I just used 256 as an example.
When defining a string for example try to only make as many cells as you need
pawn Код:
New Example_Str[5]
Example_Str = Hello;
That obviously wouldn't work it's just an example, only make cells for what you need.


Re: warning Header Size - Vince - 08.04.2014

Quote:
Originally Posted by qmnty
Посмотреть сообщение
But..
Is it will affect to my server when i was turn it On?
It might eventually become unstable and crash because variables are being overwritten with arbitrary data.