17.07.2012, 08:46
So, dialog doesn't read \n as new line from file, so i tried, to seperate names and add \n after all of them.
It only inputs:
In Medarb.txt:
Any solutions?
Код:
new string[64], str[10][26], sat[64];
new File:example = fopen("Medarb.txt", io_read);
fread(example, string);
fclose(example);
explode(str, string, "\n");
for(new d; d<10;d++)
{
new stor[26];
format(stor, 26, "%s\n", str[d]);
strins(sat, stor, 0);
}
ShowPlayerDialog(playerid, 899, DIALOG_STYLE_MSGBOX, "Workers", sat, "Ok", "");
Код:
(New line) (New line) (New line) (New line) (New line) (New line) Barack_Obama\nSteve_Cardinal
Код:
Barack_Obama\nSteve_Cardinal

