showing results from files into dialog
#4

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:

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");
Bad indentation, i am in school!
Reply


Messages In This Thread
showing results from files into dialog - by newbienoob - 06.03.2014, 05:30
Re: showing results from files into dialog - by ]Rafaellos[ - 06.03.2014, 05:32
Re: showing results from files into dialog - by newbienoob - 06.03.2014, 05:38
Re: showing results from files into dialog - by ]Rafaellos[ - 06.03.2014, 05:41
Re: showing results from files into dialog - by newbienoob - 06.03.2014, 05:44
Re: showing results from files into dialog - by ]Rafaellos[ - 06.03.2014, 05:46
Re: showing results from files into dialog - by newbienoob - 06.03.2014, 05:51

Forum Jump:


Users browsing this thread: 2 Guest(s)