Hey am I using y_dialogs wrong? (SOLVED)
# support-forum
b
Dialog_ShowCallback(playerid, using public Dialog_Login<iiiis>, DIALOG_STYLE_INPUT, "Login", "Enter Something", "Login", "Exit");
I have this line and
Copy code
c
forward Dialog_Login(playerid, response, listitem, inputtext[]);
public Dialog_Login(playerid, response, listitem, inputtext[]) {
    if(response) {
        SendClientMessage(playerid, -1, "Inputtext: %s", inputtext);
    } else {
        SendClientMessage(playerid, -1, "You've not responded!");
    }
    return 1;
}
The problem is, the
response
is always true, and there is no
inputtext
(I am not sure if this is the right way of using Dialog_ShowCallback too hehe)
OUTPUT:
Copy code
Inputtext:
d
you need dialogid still
w
he doesn't,
Copy code
c
inline Inline(response, listitem, string:inputtext[])
{
}
Dialog_ShowCallback(playerid, using inline Inline, "Title", "Caption", "Button 1");
^^
d
that's an inline.
b
Copy code
forward Dialog_Login(playerid, dialogid, response, listitem, inputtext[]);
public Dialog_Login(playerid, dialogid, response, listitem, inputtext[]) {
is this the right order @dazzling-translator-76954 ?
d
yes
b
Okay, it works now, thank you!
4 Views