GetVehicleHealth
#1

Hi guys Is there any way to change Float of GetVehicleHealth to int?? Thanks....
Reply
#2

Bump...;..............
Reply
#3

Код:
new Float:health
GetVehicleHealth(vehicleid, health); Vehicleid = vehicle string or model ID
Reply
#4

There is probably a better way than this, but I know this will work
pawn Код:
new string[8];
format(string,sizeof string,"%.0f",health);
new integer_health = strval(string);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)