PandaLovesHamster Posted January 26, 2016 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 452 Reputation: 35 Joined: 12/18/14 Last Seen: May 30, 2016 Share 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 Link to comment Share on other sites More sharing options...
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 PandaLovesHamsterLink to comment
Share on other sites
0 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.