GetPlayerHealth
#5

Quote:
Originally Posted by Phanto90
Посмотреть сообщение
SetPlayerHealth set player's health not the Health[0] value!

So you should have done:
Код:
new Float:Health[2];
GetPlayerHealth(playerid,Health[0]);
Health[0] -= 5.0;
SetPlayerHealth(playerid,Health[0]);
GetPlayerHealth(playerid,Health[1]);
printf("Old:%f New:%f",Health[0],Health[1]);
Nothing wrong with my code. And I don't get what you mean.
I know how to solve it already.
Reply


Messages In This Thread
GetPlayerHealth - by =WoR=Varth - 03.09.2011, 02:28
Re: GetPlayerHealth - by cessil - 03.09.2011, 02:45
Re: GetPlayerHealth - by =WoR=Varth - 03.09.2011, 03:29
Re: GetPlayerHealth - by Phanto90 - 03.09.2011, 07:22
Re: GetPlayerHealth - by =WoR=Varth - 03.09.2011, 07:27

Forum Jump:


Users browsing this thread: 1 Guest(s)