Please help me with dialogs.
#4

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:

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;
}
Reply


Messages In This Thread
Please help me with dialogs. - by Azzeto - 22.07.2011, 09:56
Re: Please help me with dialogs. - by Harry_Sandhu - 22.07.2011, 10:07
Re: Please help me with dialogs. - by MadeMan - 22.07.2011, 10:08
AW: Please help me with dialogs. - by Gomma - 22.07.2011, 10:14
Re: Please help me with dialogs. - by Azzeto - 22.07.2011, 10:15
Re: Please help me with dialogs. - by MadeMan - 22.07.2011, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)