epicfail Posted October 1, 2009 Share Posted October 1, 2009 hi i wanted to know if any1 could helpme.Im trying to have a msgbox pop up saying what time it will start the bot at i tryed this MsgBox(0, "start time", @HOUR + 10 & ":" & @MIN) but when i use +10 or what eva it just adds to the time so say its 21:00 it makes it 31:00 how can i make it change to the proper timeit will be when it starts at so say its 21:00 and i want my bot to say it will start in 10hours from now it will display 7:00 not 31:00 Link to comment Share on other sites More sharing options...
Mecrazycoder Posted October 1, 2009 Share Posted October 1, 2009 hi i wanted to know if any1 could helpme.Im trying to have a msgbox pop up saying what time it will start the bot at i tryed this MsgBox(0, "start time", @HOUR + 10 & ":" & @MIN) but when i use +10 or what eva it just adds to the time so say its 21:00 it makes it 31:00 how can i make it change to the proper timeit will be when it starts at so say its 21:00 and i want my bot to say it will start in 10hours from now it will display 7:00 not 31:00First check if hour is greater than 12, if so then subtract YourTime+2 from @hour.If hour is less than 12 then just add YourTime+2. Note: It won't work for minutes. Need to change the logic [size="4"][font="Arial Narrow"][font="Garamond"]Attitude is a little thing that makes a big difference[/font][/font][/size][indent][/indent] Link to comment Share on other sites More sharing options...
epicfail Posted October 1, 2009 Author Share Posted October 1, 2009 i cant work out how to do that Link to comment Share on other sites More sharing options...
weaponx Posted October 1, 2009 Share Posted October 1, 2009 Use DateAdd. Link to comment Share on other sites More sharing options...
epicfail Posted October 1, 2009 Author Share Posted October 1, 2009 omg ty that was heaps easier lol. anyway to change that to 12 hour time? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now