String warnings
#1

Ok so i was working with RobMob today and the Gamemode that we were working on is 14417 lines long, so when we compile it we get this:

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 11648 bytes
Code size: 667916 bytes
Data size: 1182492 bytes
Stack/heap size: 16384 bytes; estimated max. usage=9607 cells (38428 bytes)
Total requirements: 1878440 bytes


I'm not entirely sure what the cause is but could someone shead some light?
Reply
#2

It isn't a warning, It's telling you that it won't use that many cells.
Reply
#3

if it is not a warning what exactly is it there for ?and is there a way to get rid of it besides disabling it? .This started after I added the y_race filter script into my gamemode and changed it to zcmd .
Reply
#4

Quote:
Originally Posted by [SF
robmob ]
if it is not a warning what exactly is it there for ?and is there a way to get rid of it besides disabling it? .This started after I added the y_race filter script into my gamemode and changed it to zcmd .
It means you're using too mutch and/or big arrays, like new string[256];
Reply
#5

its a high memory usage script

if you have any strings which have (example) string[256] reduce them to 128

256 or higher is only needed for SQL. the game text panels are only able to take 128 characters so stick with 128 max
Reply
#6

On top of your script.
pawn Код:
#pragma dynamic 7500 // As low as possible, but high enough that the 'warnings' are gone
Reply
#7

http://forum.sa-mp.com/index.php?top...6470#msg886470
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)