Very simple Question Rep+
#9

Quote:
Originally Posted by Cody_Maverak
Посмотреть сообщение
Heres how I would do it:

pawn Код:
new health;
health = GetPlayerHealth(playerid);
health = health-5;
SetPlayerHealth(playerid, health);
That wouldn't work, GetPlayerHealth returns a float to the variable that is the second parameter of the function, you can't use integers and you've written the function parameters incorrectly.

https://sampwiki.blast.hk/wiki/GetPlayerHealth
Reply


Messages In This Thread
Very simple Question Rep+ - by Azzeto - 18.11.2011, 23:45
Re: Very simple Question Rep+ - by MP2 - 18.11.2011, 23:50
Re: Very simple Question Rep+ - by TheLazySloth - 18.11.2011, 23:51
Re: Very simple Question Rep+ - by Azzeto - 19.11.2011, 00:34
Re: Very simple Question Rep+ - by Calgon - 19.11.2011, 00:37
Re: Very simple Question Rep+ - by Azzeto - 19.11.2011, 00:38
Re: Very simple Question Rep+ - by Cody_Maverak - 19.11.2011, 00:39
Re: Very simple Question Rep+ - by TheLazySloth - 19.11.2011, 00:39
Re: Very simple Question Rep+ - by Calgon - 19.11.2011, 00:40

Forum Jump:


Users browsing this thread: 2 Guest(s)