getplayerhealth problem?
#4

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

Returns The function itself doesn't return a specific value. The player's health is stored in the specified variable.

If you do
pawn Код:
if(GetPlayerHealth(playerid,health) == 100) return SendClientMessage(playerid,lightyellow,"I think you are bit too full for eating");
You're trying to retrieve the players health, directly.
That wouldn't work.
Reply


Messages In This Thread
getplayerhealth problem? - by Tanush123 - 03.01.2012, 21:18
Re: getplayerhealth problem? - by Vince - 03.01.2012, 21:26
Re: getplayerhealth problem? - by geerdinho8 - 03.01.2012, 21:30
Re: getplayerhealth problem? - by FireCat - 03.01.2012, 21:37
Re: getplayerhealth problem? - by PowerPC603 - 03.01.2012, 21:46
Re: getplayerhealth problem? - by cessil - 03.01.2012, 22:14
Re: getplayerhealth problem? - by PowerPC603 - 03.01.2012, 22:39
Re: getplayerhealth problem? - by Basssiiie - 03.01.2012, 23:13
Re: getplayerhealth problem? - by Tanush123 - 04.01.2012, 02:31

Forum Jump:


Users browsing this thread: 1 Guest(s)