What is wrong in that command
#4

I think that you forgot some brackets, anyway try this one,

pawn Код:
if(strcmp(cmd, "/pay", true) == 0)
{
    if(IsPlayerConnected(playerid) && (boxevent == 0) && if (PlayerInfo[playerid][pAdmin] >= 1337))
    {
        boxevent = 1;
        BroadCast(COLOR_GREEN, " ***************!");
    }
    else if(IsPlayerConnected(playerid) && (boxevent == 1))
    {
        if(IsPlayerAdmin(playerid))
        {
            boxevent = 0;
            BroadCast(COLOR_GREEN, " ******************.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
What is wrong in that command - by boyan96 - 04.02.2012, 17:06
Re: What is wrong in that command - by boyan96 - 04.02.2012, 17:29
Re: What is wrong in that command - by ServerScripter - 04.02.2012, 17:46
Re: What is wrong in that command - by Thunderbolt - 04.02.2012, 17:49
Re: What is wrong in that command - by Konstantinos - 04.02.2012, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)