Vehicle Damage isn't loading.
#1

I have in my script:

pawn Код:
mysql_fetch_field_row(data_value, "vPanels"); Vehicles[vCarID][vPanels] = strval(data_value);
mysql_fetch_field_row(data_value, "vDoors"); Vehicles[vCarID][vDoors] = strval(data_value);
mysql_fetch_field_row(data_value, "vLights"); Vehicles[vCarID][vLights] = strval(data_value);
mysql_fetch_field_row(data_value, "vTires"); Vehicles[vCarID][vTires] = strval(data_value);
           
UpdateVehicleDamageStatus(vCarID, Vehicles[vCarID][vPanels], Vehicles[vCarID][vDoors], Vehicles[vCarID][vLights], Vehicles[vCarID][vTires]);
But none of the places are shown as damaged? EG the doors aren't being damaged and things.

What do I need to do to set them to damage?

Thanks.
Reply
#2

printf() is your friend.
Reply
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
printf() is your friend.
I know that but...

Would you please be able to tell me the values of what these should be set to when I am updating them to the SQL?

Say, if I want to set in the SQL what the damage value should be, like:

new panel;

UpdateVehicleDamageStatus(vehicleid, panel...);

What would the value of "panel" be, to make it damaged?

Thanks!
Reply
#4

Binary or something. Not sure.

https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus

Unfortunately the back doors aren't synced, so don't worry about those - they'll always be un-damaged.
Reply
#5

That'll do, thanks mate!
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)