new
Float:hp;
GetPlayerHealth(playerid, hp);
printf("HP: %.0f}", hp);
254 -> 254 255 -> 255 256 -> 0 257 -> 1 258 -> 2
Important Notes: Even though the health can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. Health is obtained rounded to integers: set 50.15, but get 50.0
Код:
Important Notes: Even though the health can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. Health is obtained rounded to integers: set 50.15, but get 50.0 |