21.04.2016, 10:48
Код:
public OnPlayerSpawn(playerid) { new string[128] = ""; for(new i = 0; i > MAX_CLASSES; i++) { if(!strcmp(string, "")) format(string, sizeof(string), "%s\n%s", string, Classes[i][Name]); else format(string, sizeof(string), "%s", Classes[i][Name]); } ShowPlayerDialog(playerid, d_spawn, DIALOG_STYLE_LIST, "Select Class", string, "Select", ""); return 1; }