#1

// Fixed.
Reply
#2

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
Reply
#3

Same errors.
Reply
#4

What is line 13?

Compiles fine for me. Using my variables.
Reply
#5

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.
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)