[Solved] Can-t kill timer!
#1

Hi,
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;
}
Gives me error 076: syntax error in the expression, or invalid function call

in the line that has: KillTimer(Weed);
Reply


Messages In This Thread
[Solved] Can-t kill timer! - by aNdReSkKkK - 29.01.2010, 05:02
Re: Can-t kill timer! - by mansonh - 29.01.2010, 05:07
Re: Can-t kill timer! - by aNdReSkKkK - 29.01.2010, 05:14
Re: Can-t kill timer! - by Goobiiify - 29.01.2010, 05:16
Re: Can-t kill timer! - by mansonh - 29.01.2010, 05:16
Re: Can-t kill timer! - by aNdReSkKkK - 29.01.2010, 05:22
Re: [Solved] Can-t kill timer! - by mansonh - 29.01.2010, 05:33

Forum Jump:


Users browsing this thread: 5 Guest(s)