29.12.2014, 13:18
Recently i had some problems with the size of my arrays. Pawno gave me this:
In order to avoid
i thought of using only one string for all the messages that needed format. So i did something like:
and whenever i need to format a message that will be less than 100 characters i use this string. The problem with the size disappeared however I am concerned that this doesn't really change anything.
Is this going to reduce the memory used by the script and make the server lag less?
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 6428 bytes Code size: 166072 bytes Data size: 904192 bytes Stack/heap size: 16384 bytes; estimated max. usage=10018 cells (40072 bytes) Total requirements: 1093076 bytes
pawn Код:
#pragma dynamic
pawn Код:
new string[100];
Is this going to reduce the memory used by the script and make the server lag less?