25.12.2015, 17:11
i have an idea
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]()
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;
}
}
P.S: I use the dsweekend++ in task globaltimer[1000]()