SA-MP Forums Archive
Timer Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Timer Problem (/showthread.php?tid=229506)



Timer Problem - Rock18 - 21.02.2011

Hey , i have in my gamemode 2-3 timers . Because of this timers is large server lag . If i delete timers server works fine , no lag . Any suggestions ?


Re: Timer Problem - iMonk3y - 21.02.2011

How often is each timer repeating? More importantly, what you put inside them?


Re: Timer Problem - Rock18 - 21.02.2011

Each timer is used once , and that timers makes 3 different textdraws dissapear .


Re : Timer Problem - Amine_Mejrhirrou - 22.02.2011

man what are saying !!
a timer never make lags !!
tell us what you have in your timers ( i mean who many line or show us your timers scripts )
( i have more than 6timers & no lags)


Re: Timer Problem - Rock18 - 22.02.2011

Man i can't show you my script , its my gamemode.

This is how my timers look in OnGameModeInit
Код:
SetTimer("Onlinep", SEC2, 1);
SetTimer("InCar2",10000,1);
SetTimer("teleport",10000,1);
With first 2 timers server works fine no lag , but when i add the third one ...impossible lag ...


Re: Timer Problem - maramizo - 22.02.2011

Use a KillTimer after you're done with it.


Re: Timer Problem - Rock18 - 22.02.2011

What that timer do (teleport) ? it shows a textdraw for player who teleport ex /sf (San Fierro) .Text draw says "You have been teleported to San Fierro".


Re: Timer Problem - maramizo - 22.02.2011

Rock post the teleport public exactly please?


Re: Timer Problem - Rock18 - 22.02.2011

No need , i resolved the problem , thanks , works with killtimer .