Health/timer problem
#4

This should work, it's weird that is taking away one.

pawn Код:
public SmallTimer(playerid)
{
    new Float:H,  Float:R; // Not neccessary
    GetPlayerHealth(playerid, H);
    R = 0.1; // Not neccessary
   
    if(Raped[playerid] == true) {
        SetPlayerHealth(playerid, H - R); // or 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)