31.01.2017, 00:42
Quote:
|
It doesn't work, it continues to the next dialog even if I type a normal email or not.
Код:
case DIALOG_EMAIL:
{
if(response)
{
if(!sscanf(inputtext, "{s[256]'@'s[256]'.'s[256]}"))
{
ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "{FFA500}E-MAIL", "{FFFFFF}Please enter your email below:\n\n", "NEXT", "");
}
else
{
new DB_Query[225];
new pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
format(PlayerInfo[playerid][pEmail],64, "%s", inputtext);
mysql_format(Database, DB_Query, sizeof(DB_Query), "UPDATE `USERS` SET `email` = '%e' WHERE `USERNAME` = '%e'"
, PlayerInfo[playerid][pEmail], pName);
mysql_tquery(Database, DB_Query);
SendClientMessage(playerid, COLOR_GREEN, "Email set succesfully! Moving onto the next part, gender!");
ShowPlayerDialog(playerid, DIALOG_SEX, DIALOG_STYLE_MSGBOX, "{FFA500}GENDER", "{FFFFFF}Are you a boy or a girl?\n\n", "BOY", "GIRL");
}
}
}
|


