09.10.2010, 16:29
I know what this is, and i know how to solve it, but i don't want to solve it with pragma dynamic, i want a clean way to finish it.
I think it's because i use these macros:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 13764 bytes
Code size: 532860 bytes
Data size: 1158676 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4393 cells (17572 bytes)
Total requirements: 1721684 bytes
I guess there are too many cells opened, how do i lower it?. .
I think it's because i use these macros:
pawn Code:
#define FormMessage(%0,%1,%2,%3)\
do\
{\
format(str, sizeof (str), (%2), %3);\
SendClientMessage((%0),(%1), str);\
}\
while ( FALSE )
#define FormMessageForAll(%0,%1,%2)\
do\
{\
format( str, sizeof ( str ), ( %1 ), %2);\
SendClientMessageToAll( ( %0 ), str);\
}\
while ( FALSE )
#define FormMessageForAllEx(%0,%1,%2,%3)\
do\
{\
foreach(Player,i)\
{\
if(i != %0)\
{\
if(P_DATA[ i ][ P_Level ] > 1)\
{\
format( str, sizeof ( str ), ( %2 ), %3);\
SendClientMessage(i, ( %1 ), str);\
}\
}\
}\
}\
while ( FALSE )
#define FormMessageForAdmins(%1,%2,%3)\
do\
{\
foreach(Player,i)\
{\
if(P_DATA[ i ][ P_Level ] > 1)\
{\
format(str, sizeof (str), (%2), %3);\
SendClientMessage(i,(%1), str);\
}\
}\
}\
while ( FALSE )
Header size: 13764 bytes
Code size: 532860 bytes
Data size: 1158676 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4393 cells (17572 bytes)
Total requirements: 1721684 bytes
I guess there are too many cells opened, how do i lower it?. .