#1

well its the dealership. when u buy a car it says it has been bought but when you do /v list or /v get it says u dont have any vehicles

Код:
	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 /v get

Код:
	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
#2

bump
Reply
#3

Bump
Reply
#4

Dont Bump often ,, it will lead to infractions!
Reply
#5

My bad but this thread has been up for like 6 days and no one have helped me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)