Problem...
#5

Quote:
Originally Posted by Allu
Посмотреть сообщение
Just set the timer to the correct value. The timer should be like 300k ms or so
Didnt work -_-

Код:
forward CheckHealth(playerid);
public CheckHealth(playerid)
{
   new Float:Health;
    GetPlayerHealth(playerid,Health);
    if(Health < 20)
    {
    	SetTimerEx("losehp",300000,true);
    }
    return 1;
}

forward losehp(playerid);
public losehp(playerid)
{
   new Float:Health;
   GetPlayerHealth(playerid, Health);
   SetPlayerHealth(playerid, Health -5);
   return 1;
}
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)