pawn Код:
Dialog_Open(playerid, const dialog_response[], style, caption[], info[], button[], button1[] = !"\0");
Dialog_Close(playerid);
Dialog_Show(playerid, const template_name[]);
IsPlayerInDialog(playerid);
GetPlayerUsingDialog(const dialog_name[], player_list[], size = sizeof player_list);
pawn Код:
// To open the dialog box, you must call Dialog_Open
// You can specify not all arguments, but only those that you need.
dialog SomeDialog(playerid, response, inputtext[])
{
/* ... */
}
// This dialog will be called only when response is set to true.
dialog SomeDialogWithResponse<true>(playerid, inputtext[])
{
/* ... */
}
// You can create templates of dialogs.
dtempl TemplateOfSomeDialog(playerid)
{
// You may omit the last argument of this function.
Dialog_Open(playerid, dfunc:SomeDialog, DIALOG_STYLE_MSGBOX, !"Caption", !"Info", !"Button");
}