SendClientMessageEx, ShowPlayerDialogEx, SendClientMessageToAllEx
#2

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:
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);
Reply


Messages In This Thread
SendClientMessageEx, ShowPlayerDialogEx, SendClientMessageToAllEx - by Mamoru - 06.10.2017, 00:07
Re: SendClientMessageEx, ShowPlayerDialogEx, SendClientMessageToAllEx - by Twizted - 06.10.2017, 08:02
Re: SendClientMessageEx, ShowPlayerDialogEx, SendClientMessageToAllEx - by Meller - 07.10.2017, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)