Problem...
#2

Quote:
Originally Posted by viddo
Посмотреть сообщение
Okay i made this code with no errors..
Код:
public CheckHealth(playerid)
{
   new Float:Health;
    GetPlayerHealth(playerid,Health);
    if(Health < 20)
    {
        hptimer = SetTimer("losehp",1000,true);
    }
    return 1;
}

forward hptimer(playerid);
public hptimer(playerid)
{
   new Float:Health;
   GetPlayerHealth(playerid, Health);
   SetPlayerHealth(playerid, Health -5); 
   return 1;
}
For some reason the health wont drop down by 5 minutes if the hp is lower than 20 -_-
You want every 5 Minutes Fall From Player to HP 20?
Reply


Messages In This Thread
Problem... - by viddo - 23.03.2012, 17:37
Re: Problem... - by .FuneraL. - 23.03.2012, 17:42
Re: Problem... - by viddo - 23.03.2012, 18:02
Re: Problem... - by Allu - 23.03.2012, 18:10
Re: Problem... - by viddo - 23.03.2012, 18:54
Re: Problem... - by Face9000 - 23.03.2012, 19:26
Re: Problem... - by viddo - 23.03.2012, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)