new Year, Month, Day, Hour, Minute, Second;
getdate(Year, Month, Day);
gettime(Hour, Minute, Second);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registering...","{FF0000}You have entered an invalid password.\n""Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File, "RegisterDate", Day,Month,Year,Hour,Minute,Second);
INI_WriteInt(File, "RegisterDate", Day,Month,Year,Hour,Minute,Second);
INI_WriteInt(File, "RegisterDate_day", Day);
INI_WriteInt(File, "RegisterDate_mon", Month);
INI_WriteInt(File, "RegisterDate_year", Year);
INI_WriteInt(File, "RegisterDate_hour",Hour);
INI_WriteInt(File, "RegisterDate_min", Minute);
INI_WriteInt(File, "RegisterDate_sec", Second);
INI_WriteInt(File, "RegisterDate_year", Year); INI_WriteInt(File, "RegisterDate_month", Month); INI_WriteInt(File, "RegisterDate_day", Day); INI_WriteInt(File, "RegisterDate_hour", Hour); INI_WriteInt(File, "RegisterDate_minute", Minute); INI_WriteInt(File, "RegisterDate_second", Second);
Write a string instead of an integer. Then, use format to gather all of the variables into one string, and write the new string to the file.
|