25.07.2015, 00:33
Alright so Ive made some code for temporarly donations, aka for example 30 days and shit, altho I dont get it at all, would this even work?
I cant really test it since I Need 1 day to expire...
This is how im saving it into the sql
Now if im correct, its saved in the SQL as int 205 (205 days since new year)
Now it will compare if VIP Days (lets say 30) are greater than current date?
AKA VIPDays are old date and getdate() is getting new date? Correct?
And also will that code even work
I cant really test it since I Need 1 day to expire...
This is how im saving it into the sql
pawn Код:
pInfo[playerid][VIPDays]+ getdate()
`VIPDays`=%d
pawn Код:
pInfo[playerid][VIPDays] -30 > getdate())
{
SendClientMessage(playerid,COLOR_GREEN,"Your VIP has expired! Thank you for donating!");
pInfo[playerid][VIP] = 0;
}
Now if im correct, its saved in the SQL as int 205 (205 days since new year)
Now it will compare if VIP Days (lets say 30) are greater than current date?
AKA VIPDays are old date and getdate() is getting new date? Correct?
And also will that code even work