From 3f8807c60539ab5f0c3852f14612ba84c8c570b7 Mon Sep 17 00:00:00 2001 From: Brian Misiak Date: Tue, 15 Oct 2024 11:35:33 -0700 Subject: [PATCH] Update samp-precise-timers.inc --- samp-precise-timers.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/samp-precise-timers.inc b/samp-precise-timers.inc index 5fd3536..31bdfa1 100644 --- a/samp-precise-timers.inc +++ b/samp-precise-timers.inc @@ -15,7 +15,18 @@ License: GNU LESSER GENERAL PUBLIC LICENSE. Version 3, 29 June 2007 */ native SetPreciseTimer(const callback_name[], const interval, const repeat, const types_of_arguments[]="", {Float,_}:...); +/* + # ResetPreciseTimer 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. + + # Example: + new timer_number = SetPreciseTimer("EverySecond",1000,true,"ds",playerid,"Hello"); + ResetPreciseTimer(timer_number,5000,true); // makes it run every 5 seconds instead +*/ +native ResetPreciseTimer(const timer_number, const interval, const repeat); + /* # DeletePreciseTimer returns 1 if the timer existed or 0 on failure. */ -native DeletePreciseTimer(const timer_number); \ No newline at end of file +native DeletePreciseTimer(const timer_number);