07.02.2012, 15:04
Hello,
when the player writes the dialogue input new line (\n) and then he has the same text to view in a new dialogue, so it does not make a new line, but \n writing as text. But when I write to the \n line of code is done.
in the text dialogue would therefore look like:
but the text in the dialog looks like:
How do I do that the text displayed in the dialog the first time and not the second?
when the player writes the dialogue input new line (\n) and then he has the same text to view in a new dialogue, so it does not make a new line, but \n writing as text. But when I write to the \n line of code is done.
Код:
// text entered player in the dialog box, this is just an example new Article1 [128] = "1\n2"; new Article2 [128] = "something"; new Article3 [128] = "something 1\nsomething 2"; new Article4 [128] = "all 3\nnothing"; new stringx [512]; format (stringx, sizeof (stringx), "%s\n\n%s\n\n%s\n\n%s", Article1, Article2, Article3, Article4), ShowPlayerDialog (playerid,0,DIALOG_STYLE_MSGBOX,"News",stringx,"Close","");
Код:
1 2 something something 1 something 2 all 3 nothing
Код:
1\n2 something something 1\nsomething 2 all 3\nnothing