26.04.2011, 11:51
How I can make a function with infinite params ? Something like SendClientMessageEx, that's not working:
And how I can make this macro:
with {Float,_}:... from the first question ? Becouse those macros increase the .AMX size .
PS: I looked in sscanf scripted version, but I don't understand from it.
Код:
stock SendClientMessageEx( playerid, color, message[ ], {Float,_}:... );
{
new string[ 128 ];
format( string, 128, message, {Float,_}:... );
return SendClientMessage( playerid, -1, string );
}
Код:
stock bool:False = false;
#define FormatSCLM(%0,%1,%2,%3,%4)\
do\
{\
format(string1, 256, (%2), %4);\
format(string2, 256, (%3), %4);\
SCLM((%0),(%1), string1, string2);\
}\
while ( False )
PS: I looked in sscanf scripted version, but I don't understand from it.


