Health/timer problem
#1

Ok, I have this timer, it's supposed to take 0.1 away from my health every 500ms (note this isn't the only thing in the timer) but instead it takes 1 which is really frustrating.

pawn Код:
public SmallTimer(playerid)
{
    new Float:H,  Float:R;

    GetPlayerHealth(playerid, H);
    R = 0.1;
   
    if(Raped[playerid] == true) {
        SetPlayerHealth(playerid, H - R);
    }
    return 1;
}
I used this and i tried a different method with no luck
pawn Код:
public SmallTimer(playerid)
{
    new Float:H;

    GetPlayerHealth(playerid, H);
   
    if(Raped[playerid] == true) {
        SetPlayerHealth(playerid, H - 0.1);
    }
    return 1;
}
Reply


Messages In This Thread
Health/timer problem - by thefatshizms - 20.03.2013, 19:03
Re: Health/timer problem - by Patrick - 20.03.2013, 19:11
Re: Health/timer problem - by thefatshizms - 20.03.2013, 19:18
Re: Health/timer problem - by Joshman543 - 20.03.2013, 22:13
Re: Health/timer problem - by Scenario - 20.03.2013, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)