SA-MP Forums Archive
ShowPlayerDialog - 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: ShowPlayerDialog (/showthread.php?tid=650381)



ShowPlayerDialog - akos127 - 26.02.2018

Hello!
I need help for dialog size.
I want a dialog with long caption, but i cant see the end of string.
Is it solvable without long text?(_______________________)


Код:
new string[128];
string = "abcdefghijklmnopqrstuvwxyz0123456789,abcdefghijklmnopqrstuvwxyz0123456789";
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, string, "Text", "Ok", "Cancel");
Result
Quote:

abcdefghijklmnopqrstuvwxyz0123456789,abcdefghijklm n

Код:
new string[128];
string = "abcdefghijklmnopqrstuvwxyz0123456789,abcdefghijklmnopqrstuvwxyz0123456789";
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, string, "Text__________________________________________________________________", "Ok", "Cancel");
Result



Re: ShowPlayerDialog - Eoussama - 26.02.2018

It dunno if this would work, trying padding the list items with spaces.


Re: ShowPlayerDialog - akos127 - 26.02.2018

Does not work


Re: ShowPlayerDialog - insus100 - 27.02.2018

https://sampwiki.blast.hk/wiki/Dialog_Styles
Add ”\t” without “” . The more you add, more space you will have.
Something like:
Quote:

new string[128];
string = "abcdefghijklmnopqrstuvwxyz0123456789,abcdefghijkl mnopqrstuvwxyz0123456789";
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, string, "Text\t\t\t\t", "Ok", "Cancel");




Re: ShowPlayerDialog - Sew_Sumi - 27.02.2018

^^ This guy thinks outside the box.


Re: ShowPlayerDialog - akos127 - 27.02.2018

Quote:
Originally Posted by insus100
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/Dialog_Styles
Add ”\t” without “” . The more you add, more space you will have.
Something like:
Not working.


Re: ShowPlayerDialog - ISmokezU - 27.02.2018

There's a limit to chars in a dialog. https://sampwiki.blast.hk/wiki/Strcat

PHP код:
new string[128];
strcat(string"abcdefghijklmnopqrstuvwxyz0123456789,abcdefghijklmnopqrstuvwxyz0123456789");
strcat(string"abcdefghijklmnopqrstuvwxyz0123456789,abcdefghijklmnopqrstuvwxyz0123456789");
ShowPlayerDialog(playerid0DIALOG_STYLE_LISTstring"Text""Ok""Cancel"); 
Increase the string size if needed.

Nonetheless, If this is what you mean.


Re: ShowPlayerDialog - Sew_Sumi - 27.02.2018

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
Nonetheless, If this is what you mean.
Na, he's meaning the title of the dialog won't expand unless the contents of the dialog are long enough.

A title that is long, gets cut unless he makes the list, wide enough to make it expand.


Re: ShowPlayerDialog - insus100 - 27.02.2018

Quote:
Originally Posted by akos127
Посмотреть сообщение
Not working.
Make sure you use \t and NOT /t


Re: ShowPlayerDialog - akos127 - 27.02.2018

I know, but does not work.