What's wrong with this pawno code?
#6

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
if(GetPlayerHealth(playerid) >= 100000 )
           {
                SetPlayerHealth(playerid,100);
           }
His initial method was fine.


Quote:
Originally Posted by megamind2067
Посмотреть сообщение
but it does not work
Quote:
Originally Posted by zDevon
Посмотреть сообщение
That is not the proper usage of GetPlayerHealth. You must store the value in a float (which is the argument you're missing, hence the warning). If you look at the wiki, https://sampwiki.blast.hk/wiki/GetPlayerHealth, they give you a perfect example of how to use it correctly.
Reply


Messages In This Thread
What's wrong with this pawno code? - by megamind2067 - 29.12.2012, 17:58
Re: What's wrong with this pawno code? - by MichaelDavidson - 29.12.2012, 18:00
Re: What's wrong with this pawno code? - by zDevon - 29.12.2012, 18:02
Re: What's wrong with this pawno code? - by megamind2067 - 29.12.2012, 18:03
Re: What's wrong with this pawno code? - by mau.tito - 29.12.2012, 18:03
Re: What's wrong with this pawno code? - by zDevon - 29.12.2012, 18:05
Re: What's wrong with this pawno code? - by megamind2067 - 29.12.2012, 18:06
Re: What's wrong with this pawno code? - by megamind2067 - 29.12.2012, 18:12
Re : What's wrong with this pawno code? - by [HRD]Mar1 - 29.12.2012, 21:35

Forum Jump:


Users browsing this thread: 1 Guest(s)