SA-MP Forums Archive
Dialog Do not responding! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Do not responding! (/showthread.php?tid=111532)



Dialog Do not responding! - -PunisheR- - 02.12.2009

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;
        }



Re: Dialog Do not responding! - Joe Staff - 02.12.2009

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.


Re: Dialog Do not responding! - -PunisheR- - 02.12.2009

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.