then you can do something like :
pawn Код:
mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `LastActivityDay` = %d,`LastActivityMonth` = '%d',
`LastActivityYear`='%d' WHERE `ID` = '%d'",Day,Month,Year,PlayerInfo[playerid][ID]);
mysql_tquery(mysql,query,"","");
you have to add LastActivityYear,LastActivityDay,LastActivityMonth to the mysql and when you load it:
PlayerInfo[playerid][LastActivityYear],PlayerInfo[playerid][LastActivityDay],
PlayerInfo[playerid][LastActivityMonth] and you have to add LastActivityYear,LastActivityMonth,LastActivityDay to the player info enums
so example of loading:
pawn Код:
new str[120];
format(str,120,"Your last activity: %d/%d/%d",PlayerInfo[playerid][LastActivityDay],PlayerInfo[playerid][LastActivityMonth],PlayerInfo[playerid][LastActivityYear]);
SendClientMessage(playerid,-1,str);