29.01.2010, 05:02
Hi,
So when player uses /weed it activates a timer like this
SetTimerEx("Weed",250,true,"i",playerid);
but then i cant destroy it..
Gives me error 076: syntax error in the expression, or invalid function call
in the line that has: KillTimer(Weed);
So when player uses /weed it activates a timer like this
SetTimerEx("Weed",250,true,"i",playerid);
but then i cant destroy it..
Код:
forward Weed(playerid); public Weed(playerid) { DrugCount[playerid]=DrugCount[playerid]+1; if (DrugCount[playerid]>=20){ SetPlayerSpecialAction(playerid,0); KillTimer(Weed); DrugCount[playerid]=0; return 1; } new Float: phealthdrug; GetPlayerHealth(playerid,phealthdrug); if ( phealthdrug < 100 ){ phealthdrug = phealthdrug+1; SetPlayerHealth(playerid,phealthdrug); } return 1; }
in the line that has: KillTimer(Weed);