Hmph Warning!
#1

pawn Код:
warning 215: expression has no effect
pawn Код:
Player[playerid][Afk] >= 0;
And the whole command

pawn Код:
command(back, playerid, params[])
{
    if(Player[playerid][Afk] >= 0)
    {
        SendClientMessage(playerid, ORANGE, "Hint: You have to be AFK to use /back!" );
    }
    else
    {
        if(Player[playerid][Afk] >= 1)
        {
            SendClientMessage(playerid, CYAN, "Welcome back." );
            TogglePlayerControllable(playerid, 1);
            Delete3DTextLabel(label[playerid]);
            Player[playerid][Afk] >= 0; //warning line here
        }
    }
    return 1;
}
Reply
#2

pawn Код:
command(back, playerid, params[])
{
    if(Player[playerid][Afk] == 0)
    {
        SendClientMessage(playerid, ORANGE, "Hint: You have to be AFK to use /back!" );
    }
    else
    {
        if(Player[playerid][Afk] == 1)
        {
            SendClientMessage(playerid, CYAN, "Welcome back." );
            TogglePlayerControllable(playerid, 1);
            Delete3DTextLabel(label[playerid]);
            Player[playerid][Afk] = 0;
        }
    }
    return 1;
}
Reply
#3

Ah lol. Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)