22.01.2016, 17:28
Hi guys,
I need your help with the function UpdateVehicleDamageStatus, i want to do a real reparation system with repairing only hood, or trunk, or doors, etc ...
To do that, i'm using it : https://sampwiki.blast.hk/wiki/DamageStatus
But it's not working. Indeed, when i call my command "/fix" with the parameter "hood" for example :
The hood doesn't fix, except if it's the only part which is broken.
What can i do to solve this problem ?
Thank you in advance for your assistance.
I need your help with the function UpdateVehicleDamageStatus, i want to do a real reparation system with repairing only hood, or trunk, or doors, etc ...
To do that, i'm using it : https://sampwiki.blast.hk/wiki/DamageStatus
But it's not working. Indeed, when i call my command "/fix" with the parameter "hood" for example :
PHP код:
if(!strcmp(what, "hood", true))
{
new bonnet, boot, driver_door, passenger_door;
decode_doors(doors, bonnet, boot, driver_door, passenger_door);
doors = encode_doors(0, boot, driver_door, passenger_door);
}
What can i do to solve this problem ?
Thank you in advance for your assistance.