02.03.2015, 15:45
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:
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:
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;
}
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;
}