formula
#8

Quote:
Originally Posted by rumen98
View Post
How can I add code to the timer means by level of RLTnfo [playerid] [Scavenge] + entire formula to reduce the timer according to the result?
If you wanted to reduce the timer you'd have to kill the existant one an set a new timer. For that you have to save the return value of SetTimer in order to being able to kill it later on. But I don't think that's what you want. The question is, what does the timer do? It executes the search? Then just use the function by RajatPawar:
pawn Code:
SetTimer("StartScavenging", GetPlayerSearchTime(playerid)*1000, false);
when setting the timer in general.
Of course you should use SetTimerEx then as you are going to have more than one person searching right?
Reply


Messages In This Thread
formula - by rumen98 - 13.05.2014, 14:22
Re: formula - by RajatPawar - 13.05.2014, 14:58
Re: formula - by rumen98 - 13.05.2014, 15:04
Re: formula - by Madd92 - 13.05.2014, 15:32
Re: formula - by rumen98 - 13.05.2014, 15:38
AW: formula - by Nero_3D - 13.05.2014, 15:46
Re: formula - by rumen98 - 13.05.2014, 15:51
Re: formula - by Madd92 - 13.05.2014, 15:52
Re: formula - by rumen98 - 13.05.2014, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)