20.03.2013, 19:03
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.
I used this and i tried a different method with no luck
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;
}
pawn Код:
public SmallTimer(playerid)
{
new Float:H;
GetPlayerHealth(playerid, H);
if(Raped[playerid] == true) {
SetPlayerHealth(playerid, H - 0.1);
}
return 1;
}