SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/01/2020, 03:30 AM   #1
Yasef99
Little Clucker
 
Join Date: Jun 2017
Posts: 19
Reputation: 0
Default Little question

Hi guys! Im have a little question, how can i print the time left of a timer? For example:

pawn Code:
"%d minutes and %d seconds to start."
Yasef99 is online now   Reply With Quote
Old 17/01/2020, 07:11 AM   #2
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 198
Reputation: 10
Default Re: Little question

Quote:
Originally Posted by Yasef99 View Post
Hi guys! Im have a little question, how can i print the time left of a timer? For example:

pawn Code:
"%d minutes and %d seconds to start."
Im sorry to bring bad news but PAWNO doesn't have that possibility, you could make it customly or search up for plugins (Iam pretty sure there are some which can do that).
__________________

My work:
-MapTD - GTA SA Map on a TextDraw

https://forum.sa-mp.com/showthread.php?t=671806
TokicMajstor is offline   Reply With Quote
Old 17/01/2020, 07:19 AM   #3
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 363
Reputation: 17
Default Re: Little question

You could use tick when you set the timer. And then concert the tick to mins/secs, can't remember how on the top of my head but not too difficult.

A timer is essentially a "wait then do", so not in that way, anyways.
__________________
Developer @ Trucknation
Administrator & Developer @ Lost Legacy
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
Proxus is offline   Reply With Quote
Old 17/01/2020, 10:18 AM   #4
Vizi10
Huge Clucker
 
Join Date: May 2017
Location: Iran
Posts: 276
Reputation: 8
Default Re: Little question

https://forum.sa-mp.com/showthread.php?t=650736

PHP Code:
native GetTimerInterval(timerid);
native SetTimerInterval(timeridinterval);
native GetTimerRemainingTime(timerid); 
Vizi10 is offline   Reply With Quote
Old 17/01/2020, 10:57 AM   #5
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 198
Reputation: 10
Default Re: Little question

Quote:
Originally Posted by Vizi10 View Post
https://forum.sa-mp.com/showthread.php?t=650736

PHP Code:
native GetTimerInterval(timerid);
native SetTimerInterval(timeridinterval);
native GetTimerRemainingTime(timerid); 
Yeah this is a good plugin, but still you can make it by yourself it will just be better to use plugin since it is optimised the best possible
__________________

My work:
-MapTD - GTA SA Map on a TextDraw

https://forum.sa-mp.com/showthread.php?t=671806
TokicMajstor is offline   Reply With Quote
Old 17/01/2020, 06:58 PM   #6
Yasef99
Little Clucker
 
Join Date: Jun 2017
Posts: 19
Reputation: 0
Default Re: Little question

Ok, im going to try make it, thanks!
Yasef99 is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[QUESTION] Kind a team based question Dirkon Scripting Help 1 24/03/2013 09:05 PM
Question regarding playerid (noob question!) Mattjones17 Help Archive 5 27/10/2010 05:21 PM
Data type question.. (and mac address question) DarrenReeder Help Archive 2 21/10/2010 09:20 PM
[Question] small question jonybomb Help Archive 10 06/04/2010 09:09 PM
Hello all i got one question (very easy to answer J.I.C question) SAMPfan109 General 0 06/03/2010 05:43 PM


All times are GMT. The time now is 07:05 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.