[Help] Dialogs Mixed Up
#1

Well, as the title says, my dialogs got kinda mixed up.
So eh, I checked a few times, the problem is not with the dialog id.
I'm using this way

pawn Код:
id(dialogid == Dialog ID)
Whats wrong with it?
Reply
#2

if(dialogid == 1)

?
Reply
#3

ye...
pawn Код:
if(dialogid == 1)
if(dialogid == 2)
if(dialogid == 3)
and so on...
Reply
#4

Bump.....
Reply
#5

It's probably because of Filterscripts, are you sure there's not two dialogs with the same ID?

My Job Engine had the same problem because of my Door system and faction engine, just had to redefine the dialogids..
Reply
#6

I removed all of my filterscripts.. still the same
Reply
#7

pawn Код:
#define DIALOG_ONE (100)
#define DIALOG_TWO (200)

if(dialogid == DIALOG_ONE)
{
printf("DIALOG_ONE");
}

if(dialogid == DIALOG_TWO)
{
printf("DIALOG_TWO");
}
place that under dialog response (and make a command to show the two dialogs).. Does the writing appear in the console?
Reply
#8

They do

Thats the commands:

pawn Код:
if (strcmp(cmd, "/bbb", true) == 0)
{
    ShowPlayerDialog(playerid, DIALOG_ONE, DIALOG_STYLE_LIST, "A","A","A","A");
    return 1;
}

if (strcmp(cmd, "/ccc", true) == 0)
{
    ShowPlayerDialog(playerid, DIALOG_TWO, DIALOG_STYLE_LIST, "B","B","B","B");
    return 1;
}
Reply
#9

So it's probably a problem with other code in your script(s), double check everything that relates with Dialogs.
Reply
#10

You're right, I was missing a "{" and "}" on some dialog.
Thanks
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)