PDA

View Full Version : dialogs


MrCesar
12/10/2016, 12:15 PM
how do i add more lines in dialog_style_msgbox?
Like using the \n option? How shall it look like? thx

SyS
12/10/2016, 12:42 PM
You mean like this?

ShowPlayerDialog(playerid, YOUR_DIALOG_ID, DIALOG_STYLE_MSGBOX, "Notice", "1.Yo\n2.Yo two\n3.Yo three", "Close", "");

MrCesar
12/10/2016, 02:31 PM
You mean like this?

ShowPlayerDialog(playerid, YOUR_DIALOG_ID, DIALOG_STYLE_MSGBOX, "Notice", "1.Yo\n2.Yo two\n3.Yo three", "Close", "");


I understand this, I mean I can't make this message huge? Like add much more then it can hold in 1 line..

ChristolisTV
12/10/2016, 02:36 PM
I understand this, I mean I can't make this message huge? Like add much more then it can hold in 1 line..

This may seem weird but that's what I do:


new string[1000];
strcat(string, "Hello world\nMore lines\n\nMore more lines.");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Test", string, "Close", "");


So I can write as many things as I want without any warnings. (You may have to make the [1000] larger if you are going to type maaany things)

Quinncell
12/10/2016, 05:55 PM
There is a limit to the dialog lines but I am not sure whats the limit.