Dialogs...
#1

I've tried on three occasions now with dialogs, but when I make them and afterwards press close or confirm (something like that), the server just says "Server Closed Connection"

Rep if you help me.
Reply
#2

Code?
Reply
#3

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
Code?
It's with every dialog.
Reply
#4

Quote:
Originally Posted by mkmk
Посмотреть сообщение
It's with every dialog.
Code?
Reply
#5

Made this to show you guys - this didn't work btw, it just said "Server Closed Connection" every time I clicked close.

pawn Код:
CMD:test(playerid, params[])
{
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Testing", "Testing\nAnd again!\nAnd again!", "Close");
}
Reply
#6

Okay, may we see the code for:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    //dialog response stuff
    return 0;
}
Reply
#7

Quote:
Originally Posted by Banana_Ghost
Посмотреть сообщение
Okay, may we see the code for:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    //dialog response stuff
    return 0;
}
Uhm... I literately just made that code lol (hence why I haven't made that yet). - also, I don't need a dialog response for what I was doing.
Reply
#8

Well add it and return 0.

Also make sure there are no filterscripts affecting this with conflicting dialog ids or something.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 0;
}
Reply
#9

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Well add it and return 0.

Also make sure there are no filterscripts affecting this with conflicting dialog ids or something.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 0;
}
How would I check if they were? I have one filter script (a house system)
Reply
#10

ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]) Make sure that the dialogid here is not same in 2 dialogs and OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) returns 0 both in FS and in GM.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)