PHP Code:
function onCreated()
{
this.dayarray = {"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"};
serverr.day = this.dayarray[0];
onTimeout();
}
so on the getgo im making it sunday, then on the timeout
PHP Code:
function onTimeout()
{
if (serverr.time.hour == 24)
{
serverr.time.hour = 0;
serverr.day = this.dayarray[+1];
}
}
}
when it resets the time back to midnight, i want it to change the day, obviously,+1 doesnt work like that. xD
Just want the array to move to the next one, even if ithe next one is [0] even if coming from [6].