Problem...
#7

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
pawn Код:
SetTimerEx("losehp",60000,true);
Код:
forward CheckHealth(playerid);
public CheckHealth(playerid)
{
   new Float:Health;
    GetPlayerHealth(playerid,Health);
    if(Health < 20)
    {
    	SetTimerEx("losehp",60000,true);
    }
    return 1;
}

forward losehp(playerid);
public losehp(playerid)
{
   new Float:Health;
   GetPlayerHealth(playerid, Health);
   SetPlayerHealth(playerid, Health-5);
   return 1;
}
Still didn't work....
is there something wrong that i made that prevents the hp to lose ?
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)