Week, Month Stats saving problem
#6

Make a new variable LastWeek.
When the player is login in:
pawn Код:
new day,month,year;
getdate(day,month,year);
if(day - LastWeek[playerid] >= 7)
{
 //..Reset stats
 LastWeek[playerid] = day;
}
Something like that.
Reply


Messages In This Thread
Week, Month Stats saving problem - by Black Wolf - 12.06.2013, 04:52
Re: Week, Month Stats saving problem - by Black Wolf - 12.06.2013, 15:06
Re: Week, Month Stats saving problem - by Knappen - 12.06.2013, 16:08
Re: Week, Month Stats saving problem - by Black Wolf - 12.06.2013, 16:13
Re: Week, Month Stats saving problem - by Knappen - 12.06.2013, 16:24
Re: Week, Month Stats saving problem - by Aly - 12.06.2013, 16:48
Re: Week, Month Stats saving problem - by Black Wolf - 12.06.2013, 16:53
Re: Week, Month Stats saving problem - by Knappen - 12.06.2013, 17:05

Forum Jump:


Users browsing this thread: 3 Guest(s)