Saving vehicle damages
#6

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Yeah, resetting vehicle closes the windows, etc and resets fuel if vehicle is not owned. It doesn't repair the vehicle.
By the way, I don't see anything wrong in my code, what would be wrong with it?
What happends when you change this:
PHP код:
            UpdateVehicleDamageStatus(CarData[carid][carVehicle], CarDamage[carid][0], CarDamage[carid][1], CarDamage[carid][2], CarDamage[carid][3]);
            
            
CoreVehicles[CarData[carid][carVehicle]][vehFuel] = CarData[carid][carFuel];
               
ResetVehicle(CarData[carid][carVehicle]); 
To this:

PHP код:
            CoreVehicles[CarData[carid][carVehicle]][vehFuel] = CarData[carid][carFuel];
               
ResetVehicle(CarData[carid][carVehicle]);  
UpdateVehicleDamageStatus(CarData[carid][carVehicle], CarDamage[carid][0], CarDamage[carid][1], CarDamage[carid][2], CarDamage[carid][3]); 
Reply


Messages In This Thread
Saving vehicle damages - by GoldenLion - 12.08.2016, 10:55
Re: Saving vehicle damages - by GoldenLion - 12.08.2016, 12:04
Re: Saving vehicle damages - by GoldenLion - 13.08.2016, 10:02
Re: Saving vehicle damages - by justjamie - 13.08.2016, 10:07
Re: Saving vehicle damages - by GoldenLion - 13.08.2016, 10:12
Re: Saving vehicle damages - by justjamie - 13.08.2016, 10:20
Re: Saving vehicle damages - by GoldenLion - 13.08.2016, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)