Help (TimerEx bug) [Rep+]
#1

pawn Код:
forward hptimer(playerid);
public hptimer(playerid)
{
    new Float:health;
    health = GetPlayerHealth(playerid, health);
    SetPlayerHealthAC(playerid, health+1);
    PlayerInfo[playerid][pHP] = SetPlayerHealth(playerid, health+1);
    GameTextForPlayer(playerid, "~g~+1 HP", 500, 3);
    PlayerPlaySound(playerid, 1083, 0.0,0.0,0.0);
    SetTimerEx("hptimer", 7000, 0, "d", playerid);
    return 1;
}
Please help. I want to make a system which gives +1 HP to the existing health. But it sets the HP to 1 (Dunno why).
Reply


Messages In This Thread
Help (TimerEx bug) [Rep+] + ANOTHER QUESTION! - by GangsTa_ - 30.10.2011, 11:45
Re: Help (TimerEx bug) [Rep+] - by Kyle - 30.10.2011, 11:46
Re: Help (TimerEx bug) [Rep+] - by playbox12 - 30.10.2011, 11:50
Re: Help (TimerEx bug) [Rep+] - by Pinguinn - 30.10.2011, 11:50
Re: Help (TimerEx bug) [Rep+] - by GangsTa_ - 30.10.2011, 12:14
Re: Help (TimerEx bug) [Rep+] - by wups - 30.10.2011, 12:20
Re: Help (TimerEx bug) [Rep+] - by GangsTa_ - 30.10.2011, 12:22
Re: Help (TimerEx bug) [Rep+] - by Edvin - 30.10.2011, 12:23
Re: Help (TimerEx bug) [Rep+] - by GangsTa_ - 30.10.2011, 12:27
Re: Help (TimerEx bug) [Rep+] - by RyDeR` - 30.10.2011, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)