donkeyg Posted September 16, 2012 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Share Posted September 16, 2012 if(gettime(4) == 2 || gettime(4) == 4 || gettime(4) == 6 ) end; why still will be held on sunday?? Quote Link to comment Share on other sites More sharing options...
kyeme Posted September 16, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 164 Reputation: 12 Joined: 03/08/12 Last Seen: 6 hours ago Share Posted September 16, 2012 Sunday = 0 4 - Week day (0 for Sunday, 6 is Saturday) Quote Link to comment Share on other sites More sharing options...
donkeyg Posted September 16, 2012 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Author Share Posted September 16, 2012 (edited) 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 September 16, 2012 by donkeyg Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 16, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago Share Posted September 16, 2012 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... should be if(gettime(4) == 2 || gettime(4) == 4 || gettime(4) == 6 || gettime(4) == 0) end; Quote Link to comment Share on other sites More sharing options...
donkeyg Posted September 16, 2012 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Author Share Posted September 16, 2012 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... 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? Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 16, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago Share Posted September 16, 2012 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 ) Quote Link to comment Share on other sites More sharing options...
Question
donkeyg
why still will be held on sunday??
Link to comment
Share on other sites
5 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.