Dialog problem
#1

This dialog shows up correctly, but this DIALOG_MESSAGES is not showing after this one..

pawn Код:
new str[1800];
        strcat(str, "Message 1", sizeof(str));
        strcat(str, "Message 2", sizeof(str));
        strcat(str, "Message 3", sizeof(str));
        strcat(str, "Message 4", sizeof(str));
        strcat(str, "Message 5", sizeof(str));

        SPD(playerid, DIALOG_MESSAGES , DIALOG_STYLE_MSGBOX, "Messages", str, "Next", "Exit");
        strdel(str, 0, sizeof(str));
pawn Код:
case DIALOG_MESSAGES:
        {
            if(response)
            {
                new stra[1800];
                strcat(stra, "Message Testata", sizeof(stra));
                SPD(playerid, DIALOG_REG, DIALOG_STYLE_INPUT, "Register", stra, "Reg", "Exit");
            }
            else
            {
                Kick(playerid);
            }
        }
Reply
#2

Which Dialog is not shown?
Reply
#3

DIALOG_REG
Reply
#4

^ Could be an idea to post required code in order to check whats wrong.

Post the DIALOG_REG as well, with corresponding commands/functions to show the dialog.
Reply
#5

Well, DIALOG_REG has nothing to do with a problem, when i Click 'Next' on the DIALOG_MESSAGES it should redirect me to another dialog, DIALOG_REG is just when i click on 'Reg' to react.
Reply
#6

But here it is:

pawn Код:
case DIALOG_REG:
        {
            if(!response) return Kick(playerid);
            if(response)
            {
                if(strlen(inputtext) < 5 || strlen(inputtext) > 21)
                {
                    new stra[1800];
                    strcat(stra, "Message Testata", sizeof(stra));
                    SPD(playerid, DIALOG_REG, DIALOG_STYLE_INPUT, "Register", stra, "Reg", "Exit");
                    return 1;
                }
                WP_Hash(PI[playerid][Lozinka], 129, inputtext);
            }
        }
Reply
#7

Anyone ?
Reply
#8

Try decreasing the length of the string you define (str[1800]) and also try to divide the messages up in more strcat's.

Even try to temporarily remove some dialog content, and try to run it. See if that works.

Make sure the Dialog ID is defined correctly. Try that, and bump again if not working
Reply
#9

The first dialog DIALOG_MESSAGES shows up correctly but the second one doesn't show up, DIALOG_REG.
Reply
#10

Anyone ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)