06.08.2012, 19:30
Quote:
But why would you use this GameTextForPlayerEx if you're not using the format parameters? However, as mentioned before, why using those global variables? I always use these (these were all tested )
pawn Код:
WARNING: You cannot use these function things in a return statement thing. Example, this will not work: pawn Код:
pawn Код:
|
Functions:
pawn Код:
GameTextForPlayerEx(playerid, string[], time, style, {Float,_}:...);
GameTextForAllEx(string[], time, style, {Float,_}:...);
SendMessage(playerid, color, message[], {Float,_}:...);
SendMessageToAll(color, message[], {Float,_}:...);
pawn Код:
#if !defined FMsg
stock FMsg[400];
#endif
stock GameTextForPlayerEx(playerid,const string[],time,style)return GameTextForPlayer(playerid,string,time,style);
#define GameTextForPlayerEx(%0,%1,%2,%3,%4) format(FMsg, sizeof(FMsg),%1,%4), GameTextForPlayer(%0,FMsg,%2,%3)
stock GameTextForAllEx(const string[],time,style)return GameTextForAll(string,time,style);
#define GameTextForAllEx(%0,%1,%2,%3) format(FMsg, sizeof(FMsg),%0,%3), GameTextForAll(FMsg,%1,%2)
#define SendMessage(%0,%1,%2) format(FMsg, sizeof(FMsg), %2), SendClientMessage(%0,%1,FMsg)
#define SendMessageToAll(%0,%1) format(FMsg, sizeof(FMsg), %1), SendClientMessageToAll(%0,FMsg)