SA-MP Forums Archive
[Ajuda] Health - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Health (/showthread.php?tid=506470)



Health - VeNuZ_ - 13.04.2014

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