SetPlayerHealth, integer, wtf!?
#1

Why in last release of samp-server(0.3a) SetPlayerHealth(playerid, health)), value of health must be in integer? I dont understand that, but GetPlayerHealth(playerid, health), health must be float!
This is stupid, now i must use floatround to get integer from float... Why isnt healt in boath functions float or integer?
Reply
#2

It's EVER this, it's stupid, but is this....
Reply
#3

It should be that SetPlayerHealth would automaticly convert float to integer.
Reply
#4

Quote:
Originally Posted by $ЂЯĢ
It should be that SetPlayerHealth would automaticly convert float to integer.
Evident...
Reply
#5

Quote:
Originally Posted by $ЂЯĢ
It should be that SetPlayerHealth would automaticly convert float to integer.
You can do that by yourself, too. (with editing one function)
Reply
#6

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by $ЂЯĢ
It should be that SetPlayerHealth would automaticly convert float to integer.
You can do that by yourself, too.
Yep, but it would be logical that it is done automaticly since GetPlayerHealth and SetPlayerHealth aren't compatibile values anymore.
Reply
#7

I think it's fine as it is now, it doesn't that matter for me. Nor for other people. Besides, you can make it on your own as float.
Reply
#8

Kind of silly that it's a float since GTA:SA rounds it down anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)