I'll need some help with format strings
#1

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.
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
Reply


Messages In This Thread
I'll need some help with format strings - by Goobiiify - 13.09.2009, 18:01
Re: I'll need some help with format strings - by Goobiiify - 13.09.2009, 18:04
Re: I'll need some help with format strings - by Ov3rl0rd - 13.09.2009, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)