SA-MP Forums Archive
dialogs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: dialogs (/showthread.php?tid=618985)



dialogs - MrCesar - 12.10.2016

how do i add more lines in dialog_style_msgbox?
Like using the \n option? How shall it look like? thx


Re: dialogs - SyS - 12.10.2016

You mean like this?
PHP код:
ShowPlayerDialog(playeridYOUR_DIALOG_IDDIALOG_STYLE_MSGBOX"Notice""1.Yo\n2.Yo two\n3.Yo three""Close"""); 



Re: dialogs - MrCesar - 12.10.2016

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
You mean like this?
PHP код:
ShowPlayerDialog(playeridYOUR_DIALOG_IDDIALOG_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..


Re: dialogs - ChristolisTV - 12.10.2016

Quote:
Originally Posted by MrCesar
Посмотреть сообщение
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:

PHP код:
new string[1000];
strcat(string"Hello world\nMore lines\n\nMore more lines.");
ShowPlayerDialog(playerid1DIALOG_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)


Re: dialogs - Quinncell - 12.10.2016

There is a limit to the dialog lines but I am not sure whats the limit.