02.10.2012, 02:44
Do this:
Alot simpler.
pawn Код:
#define MAX_STRING 1000
new FormatString[MAX_STRING];
#define Format(%0) (format(FormatString, MAX_STRING, %0), FormatString)
#define SendClientMessagef(%0,%1,%2) SendClientMessage(%0, %1, Format(%2))
#define SendClientMessageToAllf(%0,%1) SendClientMessageToAll(%0, Format(%1))
#define SetGameModeTextf(%0) SetGameModeText(Format(%0))
#define UpdatePlayer3DTextLabelTextf(%0,%1,%2,%3) UpdatePlayer3DTextLabelText(%0, %1, %2, Format(%3))
#define Update3DTextLabelTextUpdatef(%0,%1,%2) 3DTextLabelText(%0, %1, Format(%2))
#define TextDrawSetStringf(%0,%1) TextDrawSetString(%0, Format(%1))
#define SetPVarStringf(%0,%1,%2) SetPVarString(%0, %1, Format(%2))