24.03.2012, 19:10
Quote:
I think the problem is that you didn't add playerid parameter in settimer, so it should be
Код:
forward CheckHealth(playerid); public CheckHealth(playerid) { new Float:Health; GetPlayerHealth(playerid,Health); if(Health < 20) { losehp = SetTimerEx("losehp",1500000,true,"i",playerid); } return 1; } forward losehp(playerid); public losehp(playerid) { new Float:Health; GetPlayerHealth(playerid, Health); SetPlayerHealth(playerid, Health-5); return 1; } |