Vehiclehealth - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehiclehealth (
/showthread.php?tid=111293)
Vehiclehealth -
Goobiiify - 30.11.2009
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[100];
new Float:health;
new Carhp = GetVehicleHealth(vehicleid,health);
format(string,sizeof(string), "You entering a vehicle with HP: %d.",Carhp);
SendClientMessage(playerid,BLUE,string);
return 1;
}
It's only show: You entering a vehicle with HP: 1.
How to make like it shows 1000.0 or something?
Re: Vehiclehealth -
RaFsTar - 30.11.2009
use %f
Re: Vehiclehealth -
Goobiiify - 30.11.2009
Quote:
Originally Posted by RaFsTar[PT
]
use %f
|
It's show now: 0.00000 on a car with 100 percent no damages.
Re: Vehiclehealth -
thegoliathmaster - 01.12.2009
hi,
the value is stored in the variable health, the function only returns 1 because it has been sucessfully executed
++Sim++