SA-MP Forums Archive
floatround_round - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: floatround_round (/showthread.php?tid=534802)



floatround_round - Beckett - 31.08.2014

pawn Код:
SetPlayerHealthEx(playerid,floatround(hp,floatround_round));
    SetPlayerArmourEx(playerid,floatround(armor,floatround_round));
    printf("%i",floatround(hp,floatround_round));
Why is this happening? it prints 0.


Re: floatround_round - Beckett - 31.08.2014

It prints 0.00000, that means there's something wrong with me loading that variable?


Re: floatround_round - SKAzini - 31.08.2014

Is "hp" a float?

Show us your SetPlayerHealthEx and SetPlayerArmourEx functions.


Re: floatround_round - Beckett - 31.08.2014

Alright I got it now, thanks for replying guys.

PS: Ofcourse its a float if not it'll return a tag mismatch.