25.10.2014, 07:24
(
Последний раз редактировалось Edw; 26.10.2014 в 17:35.
Причина: Fixed
)
Fixed.
if(dialogid == 6)
{
if(strlen(inputtext) < 5 || strlen(inputtext) > 60) return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT,"Register:", "Error: Your Email length Should Be Between 5 To 60 characters. \nWrite your email address.\nExemplu: my_email@yahoo.com","OK", "");
new INI:File = INI_Open(/*Your User Path Here To Open*/);
INI_SetTag(File,"data");
INI_WriteString(File,"Email",inputtext);
INI_Close(File);
return 1;
}
if(strlen(inputtext) < 5 || strlen(inputtext) > 60) return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT,"Register:", "Error: Your Email length Should Be Between 5 To 60 characters. \nWrite your email address.\nExemplu: my_email@yahoo.com","OK", "");
new INI:File = INI_Open(/*Your User Path Here To Open*/);
INI_SetTag(File,"data");
INI_WriteString(File,"Email",inputtext);
INI_Close(File);
INI_String("Email",PlayerInfo[playerid][pEmail],sizeof(PlayerInfo[playerid][pEmail]);
//Enum:
enum pInfo
{
pEmail[60]
}
//Loading Data:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_String("Email",PlayerInfo[playerid][pEmail],60);
return 1;
}
//OnplayerDisconnect:
INI_WriteString(File,"Email",PlayerInfo[playerid][pEmail]);
new First[30], Second[15], Third[4]; if(sscanf(inputtext, "p<@>s[30]P<.>s[15]s[4]",First, Second, Third)) return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT,"Register:", "Error: Your Email format seems to be wrong. \nWrite your email address.\nExemplu: my_email@yahoo.com","OK", "");