08.08.2011, 00:18
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response == 1) //clicked first button
{
switch(dialogid)
{
case 1: //Your dialog - (case YourDialogID:)
{
switch(listitem)
{
case 0: //the first listitem
{
ShowPlayerDialog(playerid,YOURDIALOG,DIALOG_STYLE_MSGBOX,"Header","Message","Button1","Button2");
}
}
}
}
}
if(response == 0) //clicked second button
{
switch(dialogid)
{
case 1: //your msgbox dialog
{
//DoWhateverYouWantHere
}
}
}
return 0;
}