[Ajuda] Velocimetro com erro
#2

pawn Код:
new String[5],Sstring[10],Float:health,vehicleid = GetPlayerVehicleID(playerid),estado[10];
    GetVehicleHealth(vehicleid, health);
    if(GetVehicleHealth(vehicleid,health) > 900 )
    {
        estado = "otimo";
    }
    if(GetVehicleHealth(vehicleid,health) > 800 && GetVehicleHealth(vehicleid,health) < 899)
    {
        estado = "bom";
    }
    if(GetVehicleHealth(vehicleid,health) > 700 && GetVehicleHealth(vehicleid,health) < 799)
    {
        estado= "razoavel";
    }
    if(GetVehicleHealth(vehicleid,health) > 500 && GetVehicleHealth(vehicleid,health) < 699)
    {
        estado= "ruim";
    }
    if(GetVehicleHealth(vehicleid,health) < 250)
    {
        estado= "pessimo";
    }
    format(String, sizeof(String), "%d",GetPlayerSpeed(playerid));//velocidade
    TextDrawSetString(Text:Textdraw71, String);
    format(Sstring, sizeof(Sstring), "%f",estado);//estado
    TextDrawSetString(Text:Textdraw74, Sstring);
tenta
Reply


Messages In This Thread
Velocimetro com erro - by matanza87 - 23.09.2013, 14:50
Re: Velocimetro com erro - by PT - 23.09.2013, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)