22.09.2017, 13:16
So, i need a dialog that will show the list of people with a special criteria
Example:
How could i manage to make the list show each player with more than 1 wanted level in a new line? (There shouldn't be empty lines)
Example:
Код:
stock criteria(); { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerWantedLevel(playerid) > 1) { //code that adds the player to the dialog } } } new list[5000]; format(list, sizeof(list), ?); ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "Playerlist", list, "ok","ok"); }