GetVehicleHealth?
#1

ok so i got this

pawn Код:
new Float:VHealth; GetVehicleHealth(vehicleid,VHealth);
new VeheStr[80]; format(VeheStr,sizeof(VeheStr),"%d",VHealth);
and then it comes up with like
Vehicle Health: 15488648 a large number so how can i fix that
Reply
#2

pawn Код:
new
    Float:VHealth,
    VeheStr[80];
GetVehicleHealth(vehicleid,VHealth);
format(VeheStr,sizeof(VeheStr),"%f",VHealth);
You defined the vehicle's health as a Float and you formatted it as an integer, ^ this is the right one.
Reply
#3

Quote:
Originally Posted by Alby Fire
Посмотреть сообщение
pawn Код:
new Float:VHealth; GetVehicleHealth(vehicleid,VHealth);
new VeheStr[80]; format(VeheStr,sizeof(VeheStr),"%f",VHealth);
You defined the vehicle's health as a Float and you formatted it as an integer, ^ this is the right one.
Omg yes forgot that Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)