saverid 0 Posted October 17, 2018 Report Share Posted October 17, 2018 I need help for logic like this. i need when "loop" already 30 then use "wait" for 1 day, the question is :how i use loop like that?? if i use command "IF", how i use?? and how i use command to wait 1 day??can someone help me how to i create on ubot studio?? Quote Link to post Share on other sites
pash 504 Posted October 17, 2018 Report Share Posted October 17, 2018 x day = Hours * minutes * seconds1 day = 24 * 60 * 60 the idea basic loop while($true) { comment("Hours * minutes * seconds") RunMe() wait($multiply($multiply(24,60),60)) } define RunMe { alert("Runing") }check stop ui button("Stop") { set(#Runing,$false,"Global") } set(#Runing,$true,"Global") comment("Hours * minutes * seconds") set(#Time,$multiply($multiply(24,60),60),"Global") loop while(#Runing) { RunMe() loop(#Time) { if(#Runing) { then { wait(1) } else { } } } } alert("Stop")Other things like time difference check. Quote Link to post Share on other sites
saverid 0 Posted October 19, 2018 Author Report Share Posted October 19, 2018 thanks... it's can help me... Quote Link to post Share on other sites
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.