SA-MP Forums Archive
warning 202: what ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: warning 202: what ? (/showthread.php?tid=520992)



warning 202: what ? - vothanhdat - 21.06.2014

pawn Код:
CMD:cc(playerid, params[])
{

    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Ban can phai login truoc khi su dung lenh nay.");
    if(PlayerInfo[playerid][pAdmin] < 4 && PlayerInfo[playerid][pHelper] < 2) return SendClientMessage(playerid, COLOR_GREY, "Ban Khong Duoc Phep Su Dung Lenh Nay.");
    for(new i=0; i<100; i++)
    {
        SendClientMessageToAll(COLOR_WHITE, "Chatlog da duoc xoa boi %s", GetPlayerNameEx(playerid));
    }                                                                                    
    return 1;
}
pawn Код:
Line warrnings  SendClientMessageToAll(COLOR_WHITE, "Chatlog da duoc xoa boi %s", GetPlayerNameEx(playerid));
help


Re: warning 202: what ? - Konstantinos - 21.06.2014

You need to use format before and then send the formatted message.

https://sampwiki.blast.hk/wiki/Format


Re: warning 202: what ? - vothanhdat - 21.06.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
You need to use format before and then send the formatted message.

https://sampwiki.blast.hk/wiki/Format
thanks