floatround_round
#1

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

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

Is "hp" a float?

Show us your SetPlayerHealthEx and SetPlayerArmourEx functions.
Reply
#4

Alright I got it now, thanks for replying guys.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)