warning 202: number of arguments does not match definition
#2

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.

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
Reply


Messages In This Thread
warning 202: number of arguments does not match definition - by Team_PRO - 04.07.2014, 15:46
Re: warning 202: number of arguments does not match definition - by iOxide - 04.07.2014, 15:52
Re: warning 202: number of arguments does not match definition - by DarkZeroX - 04.07.2014, 16:58
Re : warning 202: number of arguments does not match definition - by S4t3K - 04.07.2014, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)