09.11.2011, 16:33
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2)
{
if(response) /* if player press first button */
{
switch ( listitem )
{
case 0:
{
/* first item */
}
case 1:
{
/* second item */
}
/* and so on */
}
}
else
{
/* if player press second button */
}
}
return 0;
}