View Single Post
Author Message
nergal
Veteran Member
Join Date: Apr 2012
Old 03-07-2015 , 18:36   [SNIPPET] Timers done Easy (requires SM 1.7+)
Reply With Quote #1

This snippets makes it easy to make timers without having to make the timer function and then the callback timer callback.

This ugly and hacky looking wrapper does it in one move. It should also be noted that it's preferable to use this wrapper function for NON-Repeating timers.

Example code!
PHP Code:
SetPawnTimer(AddTwoNumbers1.022); 
the Parameters are ignorable so there's less hassle.
Of course, due to the way it's structured, you can't use arrays or strings unless you modify it.

Source Code Below

Spoiler


N-JOY
Attached Files
File Type: inc pawntimer.inc (1.4 KB, 211 views)
__________________

Last edited by nergal; 05-12-2015 at 12:53.
nergal is offline