[SOLVED]where did i miss bracket?
#3

Line 31

pawn Код:
if(dialogid == 1337)
{
    if(listitem == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerToPoint(3.0,playerid,1490.3195,1305.6976,1093.2964))
            {
                if(PlayerInfo[playerid][pFlyLic] == 0)
                {
                    if(GetPlayerMoney(playerid) < 10500)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a flying license");
                        return 1;
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a flying license for $10, 500");
                        SafeGivePlayerMoney(playerid, - 10500);
                        PlayerInfo[playerid][pFlyLic] = 1;
                        OnPlayerUpdate(playerid);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, " You already own a flying license");
                    return 1;
                }
            }
        }
    }
    return 1;
}
if(listitem == 1)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(3.0,playerid,1490.3195,1305.6976,1093.2964))
        {
            if(PlayerInfo[playerid][pCarLic] == 0)
            {
                if(GetPlayerMoney(playerid) < 3500)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a driving license");
                    return 1;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a driving License for $3, 500");
                    SafeGivePlayerMoney(playerid, - 3500);
                    PlayerInfo[playerid][pCarLic] = 1;
                    OnPlayerUpdate(playerid);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTBLUE, " You already own a driving license");
                return 1;
            }
        }
    }
    return 1;
}

if(listitem == 2)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(3.0,playerid,1490.3195,1305.6976,1093.2964))
        {
            if(PlayerInfo[playerid][pBoatLic] == 0)
            {
                if(GetPlayerMoney(playerid) < 5500)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a sailing license");
                    return 1;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a boat license for $5, 500");
                    SafeGivePlayerMoney(playerid, - 5500);
                    PlayerInfo[playerid][pBoatLic] = 1;
                    OnPlayerUpdate(playerid);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTBLUE, " You already own a boat license");
                return 1;
            }
        }
    }
Reply


Messages In This Thread
[SOLVED]where did i miss bracket? - by WardenCS - 30.12.2009, 12:13
Re: where did i miss bracket? - by Correlli - 30.12.2009, 12:20
Re: where did i miss bracket? - by MerLow - 30.12.2009, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)