All pastes #544185 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-06 10:13 UTC
rendered paste body
#define SendFormatMessage(%1,%2,%3,%4,%5)	format(%3, sizeof(%3), %4, %5); SendClientMessage(%1, %2, %3)

// Use it

new string[64];

SendFormatMessage(playerid, COLOR_SYSTEM, string, "Godmode of %s is now turned OFF", gName[id]);
SendFormatMessage(playerid, COLOR_SYSTEM, string, "Welcome %s, your have %i money", gName[id], cash);

// If you don't want to declare a new string everytime you use it, then create a global string for client messages.
//----------------

new GLOBAL_STRING_CLIENT_MSG[64];

#define SendFormatMessage(%1,%2,%3,%4)	format(GLOBAL_STRING_CLIENT_MSG, 64, %3, %4); SendClientMessage(%1, %2, GLOBAL_STRING_CLIENT_MSG)

SendFormatMessage(playerid, COLOR_SYSTEM, "Godmode of %s is now turned OFF", gName[id]);
SendFormatMessage(playerid, COLOR_SYSTEM, "Welcome %s, your have %i money", gName[id], cash);