24.11.2014, 18:02
ik know now you want a responce for more than one dialog.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_EXAMPLE1)
{
if(!response) return 0;
{
switch(listitem)
{
case 0:
{
// CODE HERE
}
case 1:
{
// CODE HERE
}
case 2:
{
// CODE HERE
}
}
}
}
if(dialogid == DIALOG_EXAMPLE2)
{
if(!response) return 0;
{
switch(listitem)
{
case 0:
{
// CODE HERE
}
case 1:
{
// CODE HERE
}
case 2:
{
// CODE HERE
}
}
}
}
return 1;
}