SA-MP Forums Archive
Using timers with inline. - 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)
+--- Thread: Using timers with inline. (/showthread.php?tid=400771)



Using timers with inline. - Yiin - 20.12.2012

How to use timers with y_inline inc? Is that possible?

like

pawn Code:
main()
{
    inline timer_function(t)
    {
        printf("%i", t);
    }
    SetTimer(using inline timer_function, 1000, 0, "i", random(4));
}



Re: Using timers with inline. - RedCrossER - 20.12.2012

can you explain bit more? I think Y_Less will Help you i think he got it what you want.


Re: Using timers with inline. - Yiin - 20.12.2012

Quote:
Originally Posted by RedCrossER
View Post
can you explain bit more? I think Y_Less will Help you i think he got it what you want.
I don't know how I can explain it more. It seems clear enough. By the way, Y_Less commented in this topic twenty minutes before you, so I don't know why you write here, if you don't know how you can help.


Re: Using timers with inline. - Yiin - 20.12.2012

Quote:
Originally Posted by Y_Less
View Post
I wrote some code, but it doesn't quite work - I was using a function called Callback_Array but it didn't actually do what I thought...
Thanks for your time. It would be nice, if there would be way, to declare public functions in callbacks or other functions.


Re: Using timers with inline. - Yiin - 20.12.2012

Quote:
Originally Posted by Y_Less
View Post
Done:
I luv u.