What does all these words mean when I compile?
#3

that line...
Stack/heap size: 16384 bytes; estimated max. usage=4534 cells (18136 bytes)
...let me suspect your gamemode consists of some arrays stored and processed in a too large heap-buffer.

the code uses 160k, and its data another 144k, thats ok imo, much players needs much data stored ^^

i would think about browsing through the entire script, and fix all name/textdraw/chat stringsizes (1-dimensional arrays), like those...
Код:
new string[256];
//blablabla
.. and lower them to the proper size, f.ex [128] for chatmessages,
count the textdraw's textsizes (incl the "~n~~b~~h~(%d) %s" etc) to fit (almost) exactly.
strings are using ascii code, which uses 1 byte only per character. that wont lower the buffer usage that much i guess.

i believe those 4-bytes consuming values are the key - this line...
Код:
static WeaponToSell[MAX_PLAYERS][20][2];
... which is a 3dimensional array, that can grow up pretty fast, if u raise 1 value.
18136/4534=4 bytes. so watch out especially out for integer values stored inside (like my WeaponToSell[][][] does),
like Money, Prices, Amounts of anything that can be "displayed" by a numeric value...


Reply


Messages In This Thread
What does all these words mean when I compile? - by Celson - 24.01.2010, 04:46
Re: What does all these words mean when I compile? - by Blacklite - 24.01.2010, 08:45
Re: What does all these words mean when I compile? - by Babul - 24.01.2010, 10:58
Re: What does all these words mean when I compile? - by RyDeR` - 24.01.2010, 11:32
Re: What does all these words mean when I compile? - by SlashPT - 12.03.2010, 20:38
Re: What does all these words mean when I compile? - by aircombat - 12.03.2010, 20:52
Re: What does all these words mean when I compile? - by SlashPT - 12.03.2010, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)