Clearchat command for all and player only
#1

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?

Код:
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;
}
error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
Clearchat command for all and player only - by whando - 25.07.2015, 21:58
AW: Clearchat command for all and player only - by Mencent - 25.07.2015, 22:00
Re : Clearchat command for all and player only - by Terrorizt - 25.07.2015, 22:00
Re: Clearchat command for all and player only - by iMFear - 25.07.2015, 22:00
Re: Clearchat command for all and player only - by whando - 25.07.2015, 22:02

Forum Jump:


Users browsing this thread: 1 Guest(s)