Dialog Do not responding!
#1

hey,

I have 4 Dialogs,
Register
Login
SetPass

the register & login works fine and responds!

but the setpass do not responding!

the code:
pawn Code:
else if(dialogid == 3)
        {
            if(response == 1)
            {
                if(15 < strlen(inputtext) || strlen(inputtext) < 3)return ErrorMessage(pi,"Password must be 3-15."),ShowPlayerDialog(playerid,DIALOG_SETPASS,DIALOG_STYLE_INPUT,"\Set Your Password",".Enter Your Password","Change","Cancel");
                dini_IntSet(PlayerFile(playername), "Password", udb_hash(inputtext));
                dini_Set(PlayerFile(playername),"Pass",inputtext);
                format(String, sizeof(String), ".You Have Changed your password to %s.",inputtext);
                SendClientMessage(playerid,yellow,String);
            }
        return 1;
        }
Reply
#2

pawn Code:
if(15 < strlen(inputtext) || strlen(inputtext) < 3)
wrong.

...

pawn Code:
if((strlen(inputtext)>15)||(strlen(inputtext)<3))

And what do you mean "DO NOT RESPONDING" ? Do you mean that when a player types something the dialog closes? Or does it stay open? If it stays open then your problem is solved with the previous code.

*Also note you should do an 'else' statement after your 'if(reponse==1)' because someone could just close the window by hitting escape or the second button.
Reply
#3

I mean 'Not responding', that when I press at "Change" nothing happens!
no message, no changing!
** when I type password up to 15 letter or plus than 3 it shows me the message.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)