SA-MP Forums Archive
cc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: cc (/showthread.php?tid=429199)



cc - NathNathii - 08.04.2013

// Fixed.


Re: cc - Isolated - 08.04.2013

pawn Код:
CMD:cc(playerid, params[])
{
    if(APlayerData[playerid][PlayerLevel] >= 1){
    for(new i = 0; i < 100; i ++) SendClientMessageToAll(COLOR_WHITE, " ");
    SendClientMessageToAll(0x0079F2FF,"Chat Cleared!");
}
    return 1;
}
Try that


Re: cc - NathNathii - 08.04.2013

Same errors.


Re: cc - Isolated - 08.04.2013

What is line 13?

Compiles fine for me. Using my variables.


Re: cc - Riddick94 - 08.04.2013

Are you sure? Because it's compiling fine for me. However, try this:

pawn Код:
CMD:cc(playerid, params[])
{
    if(APlayerData[playerid][PlayerLevel] < 1)
    {
        for(new i = 0; i < 100; i ++)
        {
            SendClientMessageToAll(-1, " ");
        }
        SendClientMessageToAll(0x0079F2FF,"Chat Cleared!");
    }
    return 1;
}
Because it might be confusing in game later for script about your admin level and you might get spam of "Chat Cleared!" message.


Re: cc - NathNathii - 08.04.2013

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Are you sure? Because it's compiling fine for me. However, try this:

pawn Код:
CMD:cc(playerid, params[])
{
    if(APlayerData[playerid][PlayerLevel] < 1)
    {
        for(new i = 0; i < 100; i ++)
        {
            SendClientMessageToAll(-1, " ");
        }
        SendClientMessageToAll(0x0079F2FF,"Chat Cleared!");
    }
    return 1;
}
Because it might be confusing in game later for script about your admin level and you might get spam of "Chat Cleared!" message.
No errors/warnings, but nothing happens in-game.