25.08.2016, 10:51
Hello..
I have a small test code.
When I am in a vehicle and break a driver's door, and use this command, thets not doing anything until i respawn a vehicle? Why? How to do its working without I need to respawn the vehicle to see, the driver's door is now repaired and good?!
I have a small test code.
Код:
CMD:test(playerid, params[]) { new vehicleid = GetPlayerVehicleID(playerid); new panels, doors, lights, tires; GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires); new bonnet, boot, driver_door, passenger_door; decode_doors(doors, bonnet, boot, driver_door, passenger_door); doors = encode_doors(bonnet, boot, 0, passenger_door); UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires); return 1; }