28.11.2013, 06:44
I cannot get a player's health that is above 100, I tried getting a player's health that is 350 and it return as 94
SetPlayerHealth(playerid, 50000);
new Float:Test;
SetPlayerHealth(playerid, 350);
GetPlayerHealth(playerid, Test);
printf("%f", Test);
Result: [15:55:08] 94.000000
I need to get a player's health that is more than 100 not setting it
pawn Код:
Код:
Result: [15:55:08] 94.000000 I do not use any anti cheats |
new Float:Test;
SetPlayerHealth(playerid, 350);
GetPlayerHealth(playerid, Test);
printf("%f", Test);
@Loot you're wrong
pawn Код:
|
new Float:Test;
GetPlayerHealth(playerid, Test); // You must first get his health before setting it!
SetPlayerHealth(playerid, 350);
printf("%f", Test);
new Float:Test;
SetPlayerHealth(playerid, 350);
GetPlayerHealth(playerid, Test);
printf("%f", Test);