13.03.2014, 12:38
is that possible ?
new year, month, day, str[128];
getdate(year, month, day);
format(str, sizeof(str), "%d/%d/%d", day, month, year);
//..store it according to your user system
new year,
month,
day,
str[128],
INI:file = INI_Open("Player.ini"); // here you define the file you are going to open
getdate(year, month, day);
format(str, sizeof(str), "%d/%d/%d", day, month, year);
INI_WriteString(file, "DateRegistered", str); // here you write the variable DateRegistered of the file
enum pInfo
{
pDateRegistered[11]
};
new PlayerInfo[MAX_PLAYERS][pInfo];
//then you add a command, if you have zcmd
CMD:dateregistered(playerid, params[])
{
new id, string[64];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "/dateregistered <playerid>.");
else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Type a valid user ID.");
format(string, sizeof(string), "He registered at %s", PlayerInfo[id][pDateRegistered]);
SendClientMessage(playerid, -1, string);
return true;
}