Jump to content
  • 0

HELP: Array refresh every Tuesday


PandaLovesHamster

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   35
  • Joined:  12/18/14
  • Last Seen:  

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 by PandaLovesHamster
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...