Reply to Re: File wanted:day to night
If you don't have an account, just leave the password field blank.
You can find out the time without needing a count-up timer or anything, just use get_time_real();
From the DinkC Reference: get_time_real returns the number of minutes in the day. If it was 3 pm, or 15:00, it would return 900.
Take a look here as well!
Maybe some loop to check the time, something like...
...Ok after several edits I think that's right, it's almost 4am here
From the DinkC Reference: get_time_real returns the number of minutes in the day. If it was 3 pm, or 15:00, it would return 900.
Take a look here as well!
Maybe some loop to check the time, something like...
int &time; loop: wait(10000); &time = get_time_real(); //480 mins = 8am, 1200 mins = 8pm if (&time >= 480) { if (&time < 1200) { //check if already day, if not change to day //only skip if changing to day goto skip; } } //check if already night, if not change to night skip: goto loop;
...Ok after several edits I think that's right, it's almost 4am here