VIP status that last 30 days
#6

Well this is the best way:
Using: http://forum.sa-mp.com/showpost.php?...50&postcount=3

Save date in 3 vars
pawn Код:
new day, month, year;
getdate(year, month, day);
To check:
pawn Код:
new todayyear, todaymonth, todayday;
getdate(todayyear, todaymonth, todayday);

if ((rdn(todayyear, todaymonth, todayday) - rdn(year, month, day)) > 30)
{
    // Expired
}
Its still easy!
Reply


Messages In This Thread
VIP status that last 30 days - by ax1 - 18.08.2016, 17:31
Re: VIP status that last 30 days - by Gammix - 18.08.2016, 17:39
Re: VIP status that last 30 days - by ax1 - 18.08.2016, 17:59
Re: VIP status that last 30 days - by Gammix - 18.08.2016, 18:14
Re: VIP status that last 30 days - by ax1 - 18.08.2016, 18:17
Re: VIP status that last 30 days - by Gammix - 18.08.2016, 18:57
Re: VIP status that last 30 days - by SKAzini - 18.08.2016, 22:01
Re: VIP status that last 30 days - by Stuntff - 18.08.2016, 22:40

Forum Jump:


Users browsing this thread: 1 Guest(s)