getdate help
#7

i have an idea
pawn Код:
dsweekendcheck()
{
    dsweekendtime++;
    if(dsweekendtime >= 518400 && dsweekendtime <= 604800) // 518400 is 6th day and 604800 is 7th day which incl Saturday and Sunday, here monday is starting of week, which is day 1
    {
    dsweekend = 1;
    }
    else dsweekend = 0;
       if(dsweekendtime == 604800)
       {
       dsweekendtime = 0;
       }
}
i will start the gamemode on monday sharp 12:00am, the dsweekendtime will get advancing, but a doubt there's a restart of gamemode everyday, so the dsweekendtime will reset right? can i save the advancing time in mysql and fetch back when it starts back??
P.S: I use the dsweekend++ in task globaltimer[1000]()
Reply


Messages In This Thread
getdate help - by DetoNater - 24.12.2015, 20:43
Re: getdate help - by sheeraz - 25.12.2015, 06:46
Re: getdate help - by DetoNater - 25.12.2015, 06:49
Re: getdate help - by Vince - 25.12.2015, 11:12
Re: getdate help - by Tamy - 25.12.2015, 14:22
Re: getdate help - by ball - 25.12.2015, 14:44
Re: getdate help - by DetoNater - 25.12.2015, 17:11
Re: getdate help - by CrazyChoco - 25.12.2015, 17:30
Re: getdate help - by DetoNater - 25.12.2015, 17:34
Re: getdate help - by Vince - 25.12.2015, 22:20

Forum Jump:


Users browsing this thread: 4 Guest(s)