[Ajuda] Health
#1

tenho o seguinte cуdigo:
pawn Код:
new Float:tip;
if(tip > 0.0)
    {
        format(String, sizeof(String), "%0.f", tip);
        PlayerTextDrawSetString(playerid, DrawArmour, String);
        PlayerTextDrawShow(playerid, DrawArmour);
    }else PlayerTextDrawHide(playerid, DrawArmour);
    GetPlayerHealth(playerid, tip);
    if(tip > 0.0)
    {
        format(String, sizeof(String), "%0.f", tip);
        PlayerTextDrawSetString(playerid, DrawHealth, String);
        PlayerTextDrawShow(playerid, DrawHealth);
    }else PlayerTextDrawHide(playerid, DrawHealth);
Eu queria que aparece-se um numero inteiro tipo : 100 mas aparece 100.000 ..
Como posso resolver isso ?
@RESOLVIDO
Soluзгo : mudar %0.f => %.0f
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)