14.10.2012, 19:53
Hello,this is the variables when a player register:
As you can see, i'm trying to save the register date in the player account file, but i got error in this line:
warning 202: number of arguments does not match definition
pawn Код:
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);
pawn Код:
INI_WriteInt(File, "RegisterDate", Day,Month,Year,Hour,Minute,Second);