SA-MP Forums Archive
how to create timers - 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: how to create timers (/showthread.php?tid=90348)



how to create timers - sandisk125 - 07.08.2009

read the title


Re: how to create timers - Antonio [G-RP] - 07.08.2009

DUDE STOP SPAMMING THE SCRIPTING DISCUSSION... USE THE FUCKING SEARCH BUTTON!


Re: how to create timers - WrathOfGenesis - 07.08.2009

The pawn compiler says it all...

SetTimer ( funcname [ ] , interval , bool: repeating );

funcname : The name of the public function to be called
interval : The time between these functions being called (1000 = 1 second, 10000 = 10 secs etc)
repeating : Is it repeated? true or false

Please use the search button in future


Re: how to create timers - sandisk125 - 07.08.2009

genesis,i don't understand you


Re: how to create timers - WrathOfGenesis - 07.08.2009

SetTimer ( "RandomTimer" , 1500 , true );

Theres an example. Change "RandomTimer" to the name of your public function and 1500 to the time you want. ( I wouldnt go less than 200 )


Re: how to create timers - Geekzor - 07.08.2009

Quote:
Originally Posted by sandisk125
genesis,i don't understand you
he explain you all what u need to know ... when u dubble click on SetTimer in pawno it write u this things ...