03.09.2018, 01:48
You can use a string and concat all lines you want on the dialog. For example:
You can also use on OnDialogResponse the listitem as a position:
PHP код:
//In this case I suppose you the array's name is Locations
new string[1024], str[128];
for(new i = 0; i < LocationSize; i++)
{
format(str, 128, "%d. %s\n", i+1, Locations[i][Name]);
strcat(string, str);
}
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Available Locations", string, "Select", "Cancel");
PHP код:
printf("%s marked on GPS", Locations[listitem][Name]);