06.10.2017, 08:02
All of them are made so that you don't have to use format + SendClientMessage when formatting a message.
In other words, the former becomes the latter:
In other words, the former becomes the latter:
pawn Код:
new name[MAX_PLAYER_NAME], string[23 + MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has joined the server", name);
SendClientMessageToAll(0xFFFF00FF, string);
======
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessageEx(playerid, -1, "%s has joined the server", name);