05.06.2016, 16:38
Код:
COMMAND:locations(playerid, params[]) { format(gVar3000, sizeof(gVar3000), "%s", EOS); for(new i = 0; i != sizeof(Locs); i++) { if(isnull(gVar3000)) { format(gVar3000, sizeof(gVar3000), "%s", Locs[i][locName]); } else { format(gVar3000, sizeof(gVar3000), "%s\n%s", gVar3000, Locs[i][locName]); } } ShowPlayerDialog(playerid, DIALOG_LOCATIONS, DIALOG_STYLE_LIST, "{FF9900}Locations", gVar3000, "Mark", "Cancel"); return format(gVar3000, sizeof(gVar3000), "%s", EOS); }