Jump to content
  • 0

about time


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

if(gettime(4) == 2 || gettime(4) == 4 || gettime(4) == 6 ) end;

why still will be held on sunday??

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

Sunday = 0 :)

4 - Week day (0 for Sunday, 6 is Saturday)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Sunday = 0 :)

4 - Week day (0 for Sunday, 6 is Saturday)

ya.. why??i didnt set it 0 but still held on sunday... i think u didnt see my post clearly..

Edited by donkeyg
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

because you didnt set a condition to check for 0 ...so it's still running on sunday.....

you're the one who didnt read the post clearly... /swt

should be

if(gettime(4) == 2 || gettime(4) == 4 || gettime(4) == 6 || gettime(4) == 0) end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

because you didnt set a condition to check for 0 ...so it's still running on sunday.....

you're the one who didnt read the post clearly... /swt

should be

if(gettime(4) == 2 || gettime(4) == 4 || gettime(4) == 6 || gettime(4) == 0) end;

means it will be held on tuesday, thursday, and saturday only?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

dunno....you only post 1 line..how i know what your script does....

and...

the script...check whether the gettime(4) value is 2,4,6 or not....if yes...then the script END

2 = tuesday
4 = thursday
6 = saturday

and if you want it to check it's sunday or not...you have to use

if( gettime(4) == 0 )

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