I managed to confuse myself - Custom game time help
#5

Quote:
Originally Posted by AiRaLoKa
Посмотреть сообщение
pawn Код:
//
    minute++;
    gamehour++;//define it with the minute thingy
    if(minute == 60)
    {
        minute = 0;
        hour++;
        gamehour++;
    }
    if(hour == 12 && minute == 0)
    {
        if(IsMorning == true){IsMorning = false;}
        else{IsMorning = true;}
    }
    if(hour == 13){hour = 1;}
    if(gamehour==24){gamehour=0;}
    SetWorldTime(gamehour);
i don't know is it work or not...
but hope it's worked
I'll be trying ti, thanks. I thought this might work just by reading it, we'll see.

EDIT: (facepalm) hours are 0-23, rather than 1-24. Thanks for the help anyways lol
Reply


Messages In This Thread
I managed to confuse myself - Custom game time help - by Aerotactics - 02.06.2014, 07:55
Re: I managed to confuse myself - Custom game time help - by Rittik - 02.06.2014, 07:59
Re: I managed to confuse myself - Custom game time help - by Aerotactics - 02.06.2014, 08:22
Re: I managed to confuse myself - Custom game time help - by AiRaLoKa - 02.06.2014, 08:36
Re: I managed to confuse myself - Custom game time help - by Aerotactics - 02.06.2014, 08:47
Re: I managed to confuse myself - Custom game time help - by AiRaLoKa - 03.06.2014, 03:49

Forum Jump:


Users browsing this thread: 1 Guest(s)