Wiki mistake?
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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;
}
I fixed it already and yeah it was messing up with an enumerator, my mistake I tought it was bugged at the wiki.

I got another problem though.
pawn Код:
public OnPlayerUpdate(playerid)
    {
        new Float:HealthX;
        GetPlayerHealth(playerid, HealthX);
        pStats[playerid][health] = Float:HealthX; // Tag Mismatch
        return 1;
    }
outputs a Tag Mismatch.

Also tried to do pStats[playerid][health] = HealthX;
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: 2 Guest(s)