18.09.2009, 09:36
Well this is an example of a 2 button message box.
To show it:
Under the OnDialogResponse callback:
If you need help with lists or input boxes, just ask.
To show it:
pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Dialog title","This is a new feature!\nCool, isn't it?","Yes","No");
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1) // The dialog ID we assigned the message box to
{
if(response) SendClientMessage(playerid, 0xFFFFFFFF, "Yes? Me too!"); // If they clicked Yes
else SendClientMessage(playerid, 0xFFFFFFFF, "No? Well I think it's cool."); // If they cliked no
}
return 1;
}