Error Clear chat?
#10

Quote:
Originally Posted by CutX
Посмотреть сообщение
i forgot the return for the cmd at the end :P
pawn Код:
CMD:cc(playerid,params[])
{
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] >= 2)
            for(new i = 0; i < 100; i++) SendClientMessageToAll(0, "\n");
        SendClientMessageToAll(-1," Chat Box Cleared");
    }
    return 1;
}
Yours will still display "Chat Box Cleared" even if the player was not of the appropriate level.
Reply


Messages In This Thread
Error Clear chat? - by Tuntun - 03.01.2014, 06:44
Re: Error Clear chat? - by HardRock - 03.01.2014, 06:53
AW: Re: Error Clear chat? - by CutX - 03.01.2014, 06:55
Re: Error Clear chat? - by Emmet_ - 03.01.2014, 06:57
Re: Error Clear chat? - by SevenSlash - 03.01.2014, 06:58
Re: Error Clear chat? - by Tuntun - 03.01.2014, 06:59
Re: Error Clear chat? - by HardRock - 03.01.2014, 07:02
Re: Error Clear chat? - by Tuntun - 03.01.2014, 07:04
AW: Re: Error Clear chat? - by CutX - 03.01.2014, 07:05
Re: AW: Re: Error Clear chat? - by Bakr - 03.01.2014, 09:00

Forum Jump:


Users browsing this thread: 4 Guest(s)