22.07.2011, 10:14
This tutorial will probably help you: https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog
In your case you have a list dialog. That means your should look like this:
In your case you have a list dialog. That means your should look like this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG1) //Here you have to put the dialogid of your main dialog
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,DIALOG_CLOTHES,DIALOG_STYLE_LIST,"Clothes","Item1\nItem2","Buy","Cancel");
}
case 1:
{
//2nd
}
case 2:
{
//3rd
}
}
}
}
return 1;
}