15.04.2017, 10:41
It saves correctly, this is the important part of the ID 1 car.ini:
The only problem is applying the health and damage status to the vehicles.
I made this line to know if the datas load correctly for ID 1 vehicle (and they do):
So it loads correctly, saves correctly, the only problem is that it does not lower the vehicles HP or change the damage status of the vehicle.
Код:
HP=826.000000 Panels=18874401 Doors=33554944 Lights=5 Tires=0
I made this line to know if the datas load correctly for ID 1 vehicle (and they do):
Код:
printf("[Panels] : %d - [Doors] : %d - [Lights] : %d - [Tires] : %d",carPanels[1], carDoors[1], carLights[1], carTires[1]); //id 1 car datas