25.07.2015, 21:58
Hello, I got a clearchat command for admins to clear all players chats. Now I want to make it for the person who uses it to only clear his chat. I'm still learning and can't get it working, whats wrong?
error 035: argument type mismatch (argument 2)
Код:
CMD:clearchatall(playerid, params[]) { if (PlayerData[playerid][pAdmin] < 5) return SendErrorMessage(playerid, "You cannot use this command."); for (new i = 0; i < 100; i ++) { SendClientMessageToAll(-1, ""); } return 1; }
Код:
CMD:clearchat(playerid, params[]) { for (new i = 0; i < 100; i ++) { SendClientMessage(-1, ""); } return 1; }