What is wronge with this code ?
#6

You deleted the wrong bracket


pawn Код:
if(strcmp(cmd, "/getweed", true) == 0)
{
    new dlevel = PlayerInfo[playerid][pDrugsSkill];
    GetPlayerName(playerid, playername, sizeof(playername));
    if(PlayerInfo[playerid][pJob] == 4 && (IsPlayerInRangeOfPoint(playerid,10.0,1534.885986, -1451.428589, 16.386175))
    {
        if(dlevel >= 0 && dlevel <= 50) // Level 1
        {
            if(PlayerInfo[playerid][pPot] >= 6)
            {
                SendClientMessage(playerid, COLOR_GREY, "Already have enought pot");
                return 1;
            }
            ShowDrugsMenu(playerid, 1);
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "You are not a drug dealer");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
What is wronge with this code ? - by ShawnMiller1337 - 01.12.2010, 17:53
Re: What is wronge with this code ? - by dice7 - 01.12.2010, 18:00
Re: What is wronge with this code ? - by ShawnMiller1337 - 01.12.2010, 18:04
Re: What is wronge with this code ? - by Biesmen - 01.12.2010, 18:07
Re: What is wronge with this code ? - by ShawnMiller1337 - 01.12.2010, 18:09
Re: What is wronge with this code ? - by dice7 - 01.12.2010, 18:15
Re: What is wronge with this code ? - by ShawnMiller1337 - 01.12.2010, 18:23
Re: What is wronge with this code ? - by dice7 - 01.12.2010, 18:25
Re: What is wronge with this code ? - by ShawnMiller1337 - 01.12.2010, 18:27
Re: What is wronge with this code ? - by Scenario - 01.12.2010, 18:29

Forum Jump:


Users browsing this thread: 4 Guest(s)