epicfail Posted October 1, 2009 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
Mecrazycoder Posted October 1, 2009 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]
epicfail Posted October 1, 2009 Author Posted October 1, 2009 omg ty that was heaps easier lol. anyway to change that to 12 hour time?
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