28.02.2012, 23:09
This should work. And I know there is a more efficient way to do it with the string, but for now, you can do it by how many people you have on your server.
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
new name[MAX_PLAYER_NAME], string[126];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s\n%s",name);
showplayerdialog(playerid, DIALOG_STYLE_LIST, casenumber, "Users", string, "Select", "Cancel");
}