02.12.2016, 21:15
Quote:
Show how you put the arrays into ShowPlayerDialog/ShowPlayerPreviewModelDialog function argument.
|
Код:
enum objsale { Name[25], ObjectID } new Objects[][objsale] = { {"Whiskey", 1520, 1}, {"Milk", 19570, 1} }; // OnDialogResponse new list[800]; for(new i; i < sizeof(Objects); ++i) { format(list, sizeof(list), "%s%d\tID: %d\n", list, Objects[i][ObjectID], i); } ShowPlayerDialog(playerid, DIALOG_OBJ_SELECT, DIALOG_STYLE_PREVMODEL, "Avaliable", list, "Buy", "Return");