ShowPlayerDialog
#1

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
Reply
#2

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

Does not work
Reply
#4

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");

Reply
#5

^^ This guy thinks outside the box.
Reply
#6

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.
Reply
#7

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.
Reply
#8

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.
Reply
#9

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

I know, but does not work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)