[HELP] Tuned Car Spawning Menu
#3

It helps to have good indentation , I saw a few bracket errors within the code, might fix it.

pawn Код:
if(CurrentMenu3 == TunedVehicles)
{
    switch(row)
    {
        case 0:
        {
            TogglePlayerControllable(playerid, 1);
            if (GetPlayerMoney(playerid) >= 0)
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    TogglePlayerControllable(playerid, 0);
                    ShowMenuForPlayer(TunedVehicles,playerid);
                    SendClientMessage(playerid, COLOR_RED, "You are already in car.");
                    return 1;
                }
                else
                {
                    TogglePlayerControllable(playerid, 1);
                    GivePlayerMoney(playerid, -0);
                    CreateVehicle (562, x, y, z + 2.0, a + 90.0, -1, -1, 5000);
                    LinkVehicleToInterior(PlayerVehI[playerid], GetPlayerInterior(playerid));
                    ChangeVehiclePaintjob(PlayerVehI[playerid],random(2)+1);
                    AddVehicleComponent(PlayerVehI[playerid],1037);
                    AddVehicleComponent(PlayerVehI[playerid],1010);
                    AddVehicleComponent(PlayerVehI[playerid],1035);
                    AddVehicleComponent(PlayerVehI[playerid],1039);
                    AddVehicleComponent(PlayerVehI[playerid],1041);
                    AddVehicleComponent(PlayerVehI[playerid],1086);
                    AddVehicleComponent(PlayerVehI[playerid],1087);
                    AddVehicleComponent(PlayerVehI[playerid],1147);
                    AddVehicleComponent(PlayerVehI[playerid],1148);
                    AddVehicleComponent(PlayerVehI[playerid],1172);
                    SendClientMessage(playerid, COLOR_GREEN, "You selected a tuned Elegy");
                }
            }
        }
    }
    else
    {
        TogglePlayerControllable(playerid, 0);
        ShowMenuForPlayer(TunedVehicles,playerid);
        return 1;
    }
}
Reply


Messages In This Thread
[HELP] Tuned Car Spawning Menu - by cigo - 09.07.2009, 19:27
Re: [HELP] Tuned Car Spawning Menu - by LarzI - 09.07.2009, 20:15
Re: [HELP] Tuned Car Spawning Menu - by Chaprnks - 09.07.2009, 20:18
Re: [HELP] Tuned Car Spawning Menu - by cigo - 09.07.2009, 21:31
Re: [HELP] Tuned Car Spawning Menu - by NeRoSiS - 09.07.2009, 21:33
Re: [HELP] Tuned Car Spawning Menu - by cigo - 09.07.2009, 21:36
Re: [HELP] Tuned Car Spawning Menu - by Abernethy - 09.07.2009, 22:04
Re: [HELP] Tuned Car Spawning Menu - by cigo - 09.07.2009, 22:30
Re: [HELP] Tuned Car Spawning Menu - by Abernethy - 09.07.2009, 22:36
Re: [HELP] Tuned Car Spawning Menu - by LarzI - 10.07.2009, 02:27

Forum Jump:


Users browsing this thread: 6 Guest(s)