[Plugin] samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust!
#5

Quote:
Originally Posted by Chaprnks
View Post
Do you know if this is compatible with y_timers?
Yeah, it is fully compatible with y_timers. The plugin defines two new natives:
Code:
/* 
    # SetPreciseTimer returns timer_number, or 0 on failure.
        interval: miliseconds before the callback is triggered.
        repeat:  true/false. If false, the callback will only be called once.

    # Examples:
    SetPreciseTimer("EveryMinute",60000,true);
    SetPreciseTimer("EverySecond",1000,true,"ds",playerid,"Hello");
    new array[2] = {42,2}; SetPreciseTimer("AfterFiveSecs",5000,false,"dsaA",playerid,"world",array,sizeof(array));
*/
native SetPreciseTimer(const callback_name[], const interval, const repeat, const types_of_arguments[]="", {Float,_}:...);

/* 
    Returns 1 if the timer existed or 0 on failure.
*/
native DeletePreciseTimer(const timer_number);
The argument syntax is compatible with SetTimerEx.

Quote:
Originally Posted by Mobtiesgangsa
View Post
Great respect for u polish developers for presenting such a unique plugin, as soon as reach my destination I might give a try, BTW great introduction of your release +rep:
Thank you. I tried to make the code easy to understand. Give it a go, I would love to get some feedback 😊
Reply


Messages In This Thread
samp-precise-timers ⌚ 2.0.2: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Misiek - 20.05.2019, 08:04
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by cSharp - 20.05.2019, 21:09
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Mobtiesgangsa - 21.05.2019, 12:23
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Chaprnks - 21.05.2019, 16:27
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Misiek - 21.05.2019, 18:06
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by RogueDrifter - 21.05.2019, 19:36
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by nickdodd25 - 22.05.2019, 00:06
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by RogueDrifter - 22.05.2019, 00:20
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by MisterTickle - 22.05.2019, 20:11
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by nickdodd25 - 22.05.2019, 21:35
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Chaprnks - 14.09.2019, 05:22
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Misiek - 01.07.2020, 06:03
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Kyle - 01.07.2020, 10:48
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Fairuz - 01.07.2020, 14:44
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Mobtiesgangsa - 02.07.2020, 03:13
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Unrea1 - 06.07.2020, 15:09
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Kyle - 08.07.2020, 10:27
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Misiek - 08.07.2020, 20:33
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust! - by Kyle - 31.08.2020, 13:38

Forum Jump:


Users browsing this thread: 3 Guest(s)