Using "time setting" do not work in my custom event.
For example, I want to start the event at 12:00 and finish at 18:00 everyday.
I'm making like this.
But don't work. Whta is wrong? Please give me an advice if you know somothing about this. Thank you.
For example, I want to start the event at 12:00 and finish at 18:00 everyday.
I'm making like this.
Code:
function event() local current_time = os.date( "%H:%M:%S" ) time_1 = '12:00:00' time_2 = '18:00:00' if current_time < time_1 then event_begin() elseif current_time < time_2 then event_end() end end function event_begin() ...///