09.12.2010, 00:42
How to know a Timer ID?
So i can KillTimer it :S
So i can KillTimer it :S
forward JobCash(playerid);
JobCash = SetTimerEx("CashJob",5000,true,"i",playerid);
KillTimer(JobCash); // Here is an error
forward JobCash(playerid);
new PlayerJobTimer[MAX_PLAYERS];
PlayerJobTimer[playerid] = SetTimerEx("JobCash",5000,true,"i",playerid);
public JobCash(playerid)
{
//Here
}
KillTimer(PlayerJobTimer[playerid]);