Dealership
#1

Hello,
I got this bug when i type /v list it wont show the vehicle status of my car but it says that i have 1 car (that one i just bought) Here is the code:
pawn Код:
if(!strcmp(option, "list", true))
    {
        if(PlayerInfo[playerid][pVehicles] == 0) return SCM(playerid, COLOR_LIGHTRED, "You do not own any vehicles.");
        SCMEx(playerid, COLOR_GREEN, "______________Your Vehicles(%d)______________", PlayerInfo[playerid][pVehicles]);
        for(new i = 1; i <= PlayerInfo[playerid][pVehicles]; i++)
        {
            if(VehicleStatus[playerid][i][carOn] == 1)
            {
                if(FindVehicleByPlate(VehicleStatus[playerid][i][carPlate]))
                {
                    SCMEx(playerid, COLOR_GREEN, "Vehicle %d: %s, Lock[%d], Alarm[%d], Immobiliser[%d], Insurances[%d], Times Destroyed[%d], Next Insurance Price[$%d]", i, VehicleNames[VehicleStatus[playerid][i][carModel]-400],VehicleStatus[playerid][i][carLock],VehicleStatus[playerid][i][carAlarm],VehicleStatus[playerid][i][carImmob],VehicleStatus[playerid][i][carInsurances],VehicleStatus[playerid][i][carDestroyed],GetInsurancePrice2(playerid, i));
                }
                else
                {
                    SCMEx(playerid, COLOR_WHITE, "Vehicle %d: %s, Lock[%d], Alarm[%d], Immobiliser[%d], Insurances[%d], Times Destroyed[%d], Next Insurance Price[$%d]", i, VehicleNames[VehicleStatus[playerid][i][carModel]-400],  VehicleStatus[playerid][i][carLock],VehicleStatus[playerid][i][carAlarm],VehicleStatus[playerid][i][carImmob],VehicleStatus[playerid][i][carInsurances],VehicleStatus[playerid][i][carDestroyed],GetInsurancePrice2(playerid, i));
                }
            }
        }
        return 1;
    }
And when i am typing the command to storage the car it says i dont own any vehicles:
Here is the command too just in case you need it:
pawn Код:
if(!strcmp(option, "get", true))
    {
        new slot;
        if(sscanf(params, "{s[7]}d", slot)) return SyntaxMSG(playerid, "/v get [slot(1-3)]");
        if(slot > 3 || slot < 1) return SCM(playerid, -1, "Invalid slot.");
        if(IsVehicleSpawned(PlayerInfo[playerid][pCarKey])) return ErrorMsg(playerid, "You already have a spawned vehicle.");
        if(VehSpawned != 0) return SCM(playerid, COLOR_LIGHTRED, "Someone has just spawned a vehicle, please wait 3 seconds.");
        LoadVehicleFromSlot(playerid, slot);
        return 1;
    }
Reply


Messages In This Thread
Dealership - by Tony$$ - 02.03.2015, 15:45
Re: Dealership - by Tony$$ - 03.03.2015, 13:59
Re: Dealership - by Tony$$ - 03.03.2015, 15:26
Re: Dealership - by Tony$$ - 04.03.2015, 14:08
Re: Dealership - by Tony$$ - 04.03.2015, 15:18
Re: Dealership - by Tony$$ - 13.03.2015, 20:57
Re: Dealership - by Tony$$ - 15.03.2015, 20:56
Re: Dealership - by Tony$$ - 20.03.2015, 13:12
Respuesta: Dealership - by [DOG]irinel1996 - 20.03.2015, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)