Posts: 1,029
Threads: 96
Joined: May 2010
Reputation:
0
Hi guys.
I made some dialogs for my server (list items) - 2 dialogs. But when I select a item from the second, I get the items from the first. I used if(dialogid == 1) and if(dialogid == 2)
How can I make that each of them will have different items?
Posts: 75
Threads: 16
Joined: Aug 2009
Reputation:
0
When you make a dialog something like this
ShowPlayerDialog(playerid, ID YOU USE FOR THE DIALOG ,DIALOG_STYLE_INPUT,"Title:","Content","Option 1","Option 2");
now you use this
if(dialogid == ID YOU USE FOR DIALOG) //----> The id of the dialog like 1, 2, 3, 4...
{
if(response == 1) // ----> The First Option
{
..................
return 1;
}
else // ------> The Second Option
{
....................
}
return 1;
}
Posts: 1,029
Threads: 96
Joined: May 2010
Reputation:
0
No.. . I know it. I'm asking how to make items for the second dialog.
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
If you know that, then make sure your ShowPlayerDialog doesn't have the same dialogid as the other one.
Posts: 132
Threads: 8
Joined: Aug 2008
Reputation:
0
use a string and format(..) it ...