warning Header Size
#1

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

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.
Reply
#3

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?
Reply
#4

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

Hmm...

Thanks for the help guys..

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

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

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.
Reply
#8

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


Forum Jump:


Users browsing this thread: 3 Guest(s)