Dialog_Open(playerid, function[], style, caption[], info[], button1[], button2[]);
Dialog_Close(playerid);
Dialog_IsOpen(playerid);
Dialog_Show(playerid, function[]);
Dialog_Message(playerid, caption[], info[], button1[]);
Dialog_MessageEx(playerid, response[], caption[], info[], button1[], button2[]);
Dialog_Open(playerid, function[], style, caption[], info[], button1[], button2[], {Float, _}:...);
Dialog_Message(playerid, caption[], info[], button1[], {Float, _}:...);
Dialog_MessageEx(playerid, response[], caption[], info[], button1[], button2[], {Float, _}:...);
Tag | Description |
\\c | Centers the text |
\\r | Aligns the text to the right |
DialogCreate:test(playerid)
{
Dialog_Open(playerid, Dialog:test, DIALOG_STYLE_MSGBOX,
"Hello",
"Are you ok?",
"Yes", "No");
}
DialogResponse:test(playerid, response, listitem, inputtext[])
{
if (!response) {
SendClientMessage(playerid, -1, "This club only for OK guys!");
Dialog_Show(playerid, Dialog:test);
return 1;
}
SendClientMessage(playerid, -1, "Welcome to the club");
return 1;
}
#define MDIALOG_ZLANG_MODE
#include "mdialog"
DialogCreate:test(playerid)
{
Dialog_Open(playerid, Dialog:test, DIALOG_STYLE_MSGBOX,
"Hello",
"LANG_ARE_YOU_OK",
"Yes", "BUTTON_NO",
playerid);
}
DialogResponse:test(playerid, response, listitem, inputtext[])
{
if (!response) {
SendClientMessage(playerid, -1, "This club only for OK guys!");
Dialog_Show(playerid, Dialog:test);
return 1;
}
SendClientMessage(playerid, -1, "Welcome to the club");
return 1;
}
LANG_ARE_YOU_OK = Hey id %d, are you ok?
BUTTON_NO = No
I haven't gone much through the code since I'm browsing on my cellphone, but why would you declare button arrays with the same size as caption and header? AFAIK - buttons have width limit.
|
Tag | Description |
\\c | Centers the text |
\\r | Aligns the text to the right |
Dialog_Show(playerid, Dialog:test);