04.07.2014, 15:52
In this case, you must format your message before sending, since the message has player name.
You cannot directly insert a var into SendClientMessage function.
You cannot directly insert a var into SendClientMessage function.
pawn Код:
new str[128];
format(str, sizeof(str), "Admininstrator %s(ID:%d) has cleared the chat!",GetPName(playerid), playerid);
SendClientMessageToAll(-1,str); //I saw you are making a clear chat command so i changed the SendClientMessage to SendClientMessageToAll because using SendClientMessage returns the formatted message to the person who used the command