You'll requre quite a long string to insert everything.
pawn Код:
YCMD:gps(playerid, params[], help)
{
#pragma unused params
new listitems[512], singleitem[64];
for(new i=0;i<=100; i++)
{
format(singleitem,sizeof(singleitem),"\n%d. %s",i,gps_name[i]);
strcat(listitems, singleitem, sizeof listitems);
}
ShowPlayerDialog(playerid,GPSDIALOG,DIALOG_STYLE_LIST,"Place",listitems,"Go","Close");
return 1;
}