countdown timer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: countdown timer (
/showthread.php?tid=262364)
countdown timer -
The Woody - 17.06.2011
Is it possible to make a countdown timer that keeps running even if the server is offline?
Re: countdown timer -
Sasino97 - 17.06.2011
No... It's not possible, because all stops when you close the black window
Re: countdown timer -
The Woody - 17.06.2011
Quote:
Originally Posted by [GF]Sasino97
No... It's not possible, because all stops when you close the black window
|
Not even with MySQL?
Re: countdown timer -
Calgon - 17.06.2011
MySQL is a database storage system - it stores data and lets you select/update/delete from it, it's not a timer system...
If you're using Linux, you could use PHP or a bash/shell script with a CRON.
Re: countdown timer -
The Woody - 18.06.2011
Quote:
Originally Posted by Calg00ne
MySQL is a database storage system - it stores data and lets you select/update/delete from it, it's not a timer system...
If you're using Linux, you could use PHP or a bash/shell script with a CRON.
|
Im not using linux, but if the MySQL is up 24/7 why can't it just update the "timer" every hour or something that should be possible? and the server is up 24/7 its just when i restart i don't want the timer to restart or stop.
But if its not possible on windows well.. thanks for helping then.
Re: countdown timer -
Kayaque - 18.06.2011
Create a PHP site which reads from mysql base. Almost like a UCP site. That's the only way I can see it possible.
Re: countdown timer -
__ - 18.06.2011
Quote:
Originally Posted by The Woody
Im not using linux, but if the MySQL is up 24/7 why can't it just update the "timer" every hour or something that should be possible? and the server is up 24/7 its just when i restart i don't want the timer to restart or stop.
But if its not possible on windows well.. thanks for helping then.
|
Again, MySQL saves information. It doesn't execute timers.
Re: countdown timer -
The Woody - 18.06.2011
Quote:
Originally Posted by Kayaque
Create a PHP site which reads from mysql base. Almost like a UCP site. That's the only way I can see it possible.
|
I see where your going. I will try something like that thanks.
Quote:
Originally Posted by __
Again, MySQL saves information. It doesn't execute timers.
|
I know that, but it updates doesn't it?...