13.09.2009, 18:01
Hello, I've been doing/attempting to make when you entering a vehicle, it will give you the current health of it.
But it does just view 0.000000...
here is my piece of code.
//Goobii
But it does just view 0.000000...
here is my piece of code.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:Vhealth, string[128];
GetVehicleHealth(playerid, Vhealth);
format(string, sizeof(string), "You entered a Vehicle with Health: %f", Vhealth);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
//Goobii