29.04.2017, 11:26
Just an update on this, it works perfectly with y_inline and y_dialogs:
pawn Код:
#include <dialogs>
#include <YSI\y_inline>
#include <YSI\y_dialog>
CMD:test ( playerid, params [] ) {
inline TestResponse(pid, dialogid, response, listitem, string:inputtext[]) {
#pragma unused pid, dialogid, response, listitem, inputtext
SendClientMessage(playerid, 0xFF0000AA, "You clicked a button! Good for you!");
}
Dialog_ShowCallback(playerid, using inline TestResponse, DIALOG_STYLE_PREVMODEL_LIST, "Weapon selection dialog", "372\tTec-9\n352\tUZI\n346\t9mm\n347\tSilenced 9mm\n348\tDesert eagle", "Select", "Cancel");
return true ;
}