Wiki mistake?
#2

Everything is fine with the example, it's just your fault that health is declared as global variable. Just change the name:

pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float: fHealth;
    GetPlayerHealth(playerid, fHealth);
    if (fHealth < 50.0) SetPlayerHealth(playerid, 50.0);
    return 1;
}
Reply


Messages In This Thread
Wiki mistake? - by [WA]iRonan - 16.01.2014, 12:51
Re: Wiki mistake? - by Konstantinos - 16.01.2014, 12:57
Re: Wiki mistake? - by Zex Tan - 16.01.2014, 12:58
Re: Wiki mistake? - by [WA]iRonan - 16.01.2014, 12:59
Re: Wiki mistake? - by erminpr0 - 16.01.2014, 13:03
Re: Wiki mistake? - by Zex Tan - 16.01.2014, 13:07
Re: Wiki mistake? - by Konstantinos - 16.01.2014, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)