donkeyg Posted September 16, 2012 Posted September 16, 2012 if(gettime(4) == 2 || gettime(4) == 4 || gettime(4) == 6 ) end; why still will be held on sunday?? Quote
kyeme Posted September 16, 2012 Posted September 16, 2012 Sunday = 0 4 - Week day (0 for Sunday, 6 is Saturday) Quote
donkeyg Posted September 16, 2012 Author 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
Emistry Posted September 16, 2012 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
donkeyg Posted September 16, 2012 Author 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
Emistry Posted September 16, 2012 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
Question
donkeyg
why still will be held on sunday??
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.