06.03.2014, 05:41
It should. Because you format str with every name but when you format again, it's deleting the previous names and format with the last name only.
EDIT: try it like so:
Bad indentation, i am in school!
EDIT: try it like so:
pawn Код:
while(fread(pname, string))
{
format(str,sizeof(str), "%s%s\n", str, string);
printf("%s", string);
}
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Players", str, "Ok", "Cancel");