Dialog email probl
#1

Hello, i just made this simple input email in dialog but i've a small problem.

Code:

pawn Код:
if(dialogid == DIALOG_EMAIL)
            {
            if (!response) return 1;
            if(response)
            {
            ShowPlayerDialog(playerid, DIALOG_EMAIL2, DIALOG_STYLE_INPUT,"Insert Email","{FF0000}Insert your email here.This step is OPTIONAL. You can skip this if you want.\n""Adding your email to our database, the Cod Samp staff will inform you about server updates, bug fixes and you'll receive a special offer by our partners! ","Add!","No!");
            }
            }
           
            if(dialogid == DIALOG_EMAIL2)
            {
            if(response)
            {
            if(!IsValidMailAddr(inputtext)) return ShowPlayerDialog(playerid, DIALOG_EMAIL2, DIALOG_STYLE_INPUT,"Insert Email","{FF0000}Insert your email here.This step is OPTIONAL. You can skip this if you want.\n""Adding your email to our database, the Cod Samp staff will inform you about server updates, bug fixes and you'll receive a special offer by our partners! ","Yes, i agree!","No, i don't agree.");
            ShowPlayerDialog(playerid, DIALOG_EMAIL3, DIALOG_STYLE_MSGBOX,"{008000}Success!","{FF0000}Your email has been added to our database!","Ok","");
            SendClientMessage(playerid,-1,"{F70505}Email added to database. {FF0000}You'll now receive from Cod Samp staff all the server updates info and some special offers by our partner!");
            Emails++;
            new Pname[24];
            new a[130];
            GetPlayerName(playerid, Pname, 24);
            format(a, sizeof(a), "0,4%s (%d) added his email to our database to keep informed about server updates and alot more.", Pname, playerid);
            IRC_GroupSay(gGroupID, IRC_ACHANNEL, a);
            IRC_GroupSay(gGroupID, IRC_CHANNEL, a);
            }
            }
If i insert the email and i click on "Add!" it doesn't send me the DIALOG_EMAIL3 but it freezes at DIALOG_EMAIL2, like i didn't typed nothing.
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)