Jump to content
  • 0

Random Goto Script for happyhour


Question

Posted

Hi ! I just tried to randomize my happyhour today but it didnt worked out .. I wonder if my script is right or what ? help If the time is 1500 and weekdays it will randomly choose to go to happyhour3 or 2 

OnHour03:
OnHour15:
if ( gettime(4) == 6 || gettime(4) == 0) goto OnHappyHour3;
if ( gettime(4) != 6 || gettime(4) != 0) goto rand(OnHappyHour3,OnHappyHour2);

 

2 answers to this question

Recommended Posts

  • 0
Posted

Hello,

I'd have done something like this:

OnHour03:
OnHour15:
if ( gettime(4) == 6 || gettime(4) == 0) goto OnHappyHour3;
if ( gettime(4) != 6 || gettime(4) != 0){ if(rand(1,2) == 1) goto OnHappyHour3; else goto OnHappyHour2; }

(not tested)

  • Upvote 1
  • 0
Posted
4 hours ago, Kreustoo said:

Hello,

I'd have done something like this:


OnHour03:
OnHour15:
if ( gettime(4) == 6 || gettime(4) == 0) goto OnHappyHour3;
if ( gettime(4) != 6 || gettime(4) != 0){ if(rand(1,2) == 1) goto OnHappyHour3; else goto OnHappyHour2; }

(not tested)

I will try  this sir thankyou !!!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...