08.09.2014, 20:48
Okay everytime i typed /v list its only shows this:

when its normally is going to show this:

and everytime i type /v get it says i dont have any vehicles when i just bought one (at the bugged one).
I tried everything. I tried to turn on A_I(AUTO_INCREMENT) Still wont work. By the way the bugged one is on my host. But it works perfectly on LAN. And i uploaded the same script. What could be wrong? And here is the code.
and here is /v get

when its normally is going to show this:

and everytime i type /v get it says i dont have any vehicles when i just bought one (at the bugged one).
I tried everything. I tried to turn on A_I(AUTO_INCREMENT) Still wont work. By the way the bugged one is on my host. But it works perfectly on LAN. And i uploaded the same script. What could be wrong? And here is the code.
Код:
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;
}
Код:
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;
}


