Jump to content
  • 0

Event with gettime


Kambroz

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/22/16
  • Last Seen:  

Three requests:
1 ° the use of gettime, for an event every 3 hours.
2 ° the use of gettime, for an event every 4 hours.
3 ° the use of gettime, for an event every 6 hours.

Spoiler

OnMinute00:
if ( gettime(3) % 2 ) end;
// event start every 2 hour

So an event every 3 hours should be?
Thank you, I hope you can help me.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

On 5/30/2017 at 9:04 AM, Kambroz said:

Three requests:
1 ° the use of gettime, for an event every 3 hours.
2 ° the use of gettime, for an event every 4 hours.
3 ° the use of gettime, for an event every 6 hours.

  Hide contents


OnMinute00:
if ( gettime(3) % 2 ) end;
// event start every 2 hour

So an event every 3 hours should be?
Thank you, I hope you can help me.

If you use OnMinute00 = Starts EveryHour / OnMinute30 = Starts every 30 minutes of an hour (1:30, 2:30, and so on)
You can use OnClock1300 = 1PM or OnHour 23 :))

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/22/16
  • Last Seen:  

Thanks for the help. Has been resolved :)

Link to comment
Share on other sites

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...