15.06.2010, 12:25
Alright, so i made this:
To save the date of e.g when the players register and such.
So my question is, would you be able to do like this:
So that you get the date plus a month, so you would be able to compare that with something like:
So you can get the time when they register and compare that when they like login, and then after 1 month you cut get the date and say like "congratulations you been here for a month" (Just an example).
Would this be possible?
Код:
new Year,Month,Day; getdate(Year, Month, Day); format(string,sizeof(string),"%d/%d/%d",Year,Month,Day); dini_IntSet(file,"Date",string);
So my question is, would you be able to do like this:
Код:
new Year,Month,Day; getdate(Year, Month+1, Day); format(string,sizeof(string),"%d/%d/%d",Year,Month,Day); dini_IntSet(file,"Date",string);
Код:
new Year,Month,Day; getdate(Year,Month,Day); format(string,sizeof(string),"%d/%d/%d",Year,Month,Day); if(!strcmp(string,dini_Get(file,"Date"),true))
Would this be possible?