How can I list all enum data in dialog box
#2

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


Messages In This Thread
How can I list all enum data in dialog box - by akib - 03.09.2018, 01:35
Re: How can I list all enum data in dialog box - by iHollyZinhO - 03.09.2018, 01:48
Re: How can I list all enum data in dialog box - by akib - 04.09.2018, 11:11
Re: How can I list all enum data in dialog box - by AmigaBlizzard - 04.09.2018, 11:20
Re: How can I list all enum data in dialog box - by akib - 04.09.2018, 11:24
Re: How can I list all enum data in dialog box - by akib - 04.09.2018, 12:28

Forum Jump:


Users browsing this thread: 1 Guest(s)