PandaLovesHamster Posted January 26, 2016 Posted January 26, 2016 (edited) Hi guys, I've been having trouble testing this little piece of code because I need the script to be reset or re-select a new array every Tuesday.I've set this to check whether it is a Tuesday or not, but it seems it only works if I reload the server. if(gettime(4) == 2 && gettime(3) == 20){ goto NewSet; } //New Set every Tuesday I've set that under OnInit. How do I make sure that line of code will run every Tuesday?Solved: OnMinute00: if (gettime(4) == 2) { // Tuesday cleararray; } end; Thanks to aleos via #support channel: https://discord.gg/0XP9qqhUV9E7sb5p Edited January 26, 2016 by PandaLovesHamster Quote
Question
PandaLovesHamster
Hi guys, I've been having trouble testing this little piece of code because I need the script to be reset or re-select a new array every Tuesday.
I've set this to check whether it is a Tuesday or not, but it seems it only works if I reload the server.
I've set that under OnInit. How do I make sure that line of code will run every Tuesday?
Solved:
Thanks to aleos via #support channel: https://discord.gg/0XP9qqhUV9E7sb5p
Edited by PandaLovesHamster0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.