How to check if player entered an email
#8

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
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");
				}
			}
		}
you mismatched condition....
Reply


Messages In This Thread
How to check if player entered an email - by AndreiWow - 29.01.2017, 15:23
Re: How to check if player entered an email - by oMa37 - 29.01.2017, 15:26
Re: How to check if player entered an email - by SyS - 29.01.2017, 15:26
Re: How to check if player entered an email - by AndreiWow - 29.01.2017, 15:34
Re: How to check if player entered an email - by AndreiWow - 30.01.2017, 18:18
Re: How to check if player entered an email - by X337 - 30.01.2017, 18:26
Re: How to check if player entered an email - by AndreiWow - 30.01.2017, 18:34
Re: How to check if player entered an email - by SyS - 31.01.2017, 00:42
Re: How to check if player entered an email - by AndreiWow - 31.01.2017, 12:17
Re: How to check if player entered an email - by Lordzy - 31.01.2017, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)