dialog help
#1

every time i try to add alot of words at my dialog it gives error (because its too long) but i have seen on many servers a really really big dialog like this : http://mta-community.ru/index.php?topic=18.0
can anyone tell me how to do it?
________
ROMANIAN RECIPES
Reply
#2

If you didn't already knew you can add new lines:
pawn Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], "This\nis\njust\na\ntest", button1[], button2[]);
Output:
This
is
just
a
test.

I don't know how to make it bigger tough
Reply
#3

Quote:
Originally Posted by [NWA
Hannes ]
If you didn't already knew you can add new lines:
pawn Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], "This\nis\njust\na\ntest", button1[], button2[]);
Output:
This
is
just
a
test.

I don't know how to make it bigger tough
i know how to make dialog but i just wanna know how to make it bigger
________
PRILOSEC SETTLEMENT
Reply
#4

Quote:
Originally Posted by [AC
Etch ]
Quote:
Originally Posted by [NWA
Hannes ]
If you didn't already knew you can add new lines:
pawn Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], "This\nis\njust\na\ntest", button1[], button2[]);
Output:
This
is
just
a
test.

I don't know how to make it bigger tough
i know how to make dialog but i just wanna know how to make it bigger
pawn Код:
new DialogString[256];
format(DialogString,sizeof(DialogString),"Option 1");
format(DialogString,sizeof(DialogString),"%s\nOption 2",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 3",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 4",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 5",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 6",DialogString);
...
format(DialogString,sizeof(DialogString),"%s\nOption 15648",DialogString);
ShowPlayerDialog(playerid, dialogid, style, caption[], DialogString, button1[], button2[]);
Reply
#5

Quote:
Originally Posted by wafffllesss
Quote:
Originally Posted by [AC
Etch ]
Quote:
Originally Posted by [NWA
Hannes ]
If you didn't already knew you can add new lines:
pawn Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], "This\nis\njust\na\ntest", button1[], button2[]);
Output:
This
is
just
a
test.

I don't know how to make it bigger tough
i know how to make dialog but i just wanna know how to make it bigger
pawn Код:
new DialogString[256];
format(DialogString,sizeof(DialogString),"Option 1");
format(DialogString,sizeof(DialogString),"%s\nOption 2",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 3",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 4",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 5",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 6",DialogString);
...
format(DialogString,sizeof(DialogString),"%s\nOption 15648",DialogString);
ShowPlayerDialog(playerid, dialogid, style, caption[], DialogString, button1[], button2[]);
can u explain more or give a link for tut.?
________
AVANDIA ATTORNEYS
Reply
#6

pawn Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], "bla bla bla bla bla bla bla bla bla bla bla bla bla\
                            \nbla bla bla bla bla bla bla bla bla bla bla bla bla\
                            \nbla bla bla bla bla bla bla bla bla bla bla bla bla."
, button1[], button2[]);
Reply
#7

Quote:
Originally Posted by [AC
Etch ]
Quote:
Originally Posted by wafffllesss
Quote:
Originally Posted by [AC
Etch ]
Quote:
Originally Posted by [NWA
Hannes ]
If you didn't already knew you can add new lines:
pawn Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], "This\nis\njust\na\ntest", button1[], button2[]);
Output:
This
is
just
a
test.

I don't know how to make it bigger tough
i know how to make dialog but i just wanna know how to make it bigger
pawn Код:
new DialogString[256];
format(DialogString,sizeof(DialogString),"Option 1");
format(DialogString,sizeof(DialogString),"%s\nOption 2",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 3",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 4",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 5",DialogString);
format(DialogString,sizeof(DialogString),"%s\nOption 6",DialogString);
...
format(DialogString,sizeof(DialogString),"%s\nOption 15648",DialogString);
ShowPlayerDialog(playerid, dialogid, style, caption[], DialogString, button1[], button2[]);
can u explain more or give a link for tut.?
Create a string
pawn Код:
new DialogString[256];
Format it every single line with your options
pawn Код:
format(DialogString,sizeof(DialogString),"%s\nNew Option",DialogString); // Always including what you already got ( in this case: DialogString ).
Make this for all your options, Then you use the string
pawn Код:
DialogString
as the content of the dialog.
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your option", DialogString, "Click me", "<- don't click him, click me!");
Reply
#8

Код:
if(strcmp(cmd, "/help", true) == 0 || strcmp(cmd, "/cmds", true) == 0 || strcmp(cmd, "/commands", true) == 0)
	{
	  ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Help :","Account : /register , /login , /changepass , /getid , /resetstats.\
		\n_______________________________________________________________________________________________________________________________________________________________\
		Player : /stats , /givecash , /kill , /me , /pm , /changeclass , /shop.\
		\n________________________________________________________________________________________________________________________________________________________________\
		Other :\n/ahelp ==> Admin Commands\n/vhelp ==> V.I.P Help\n/rules ==> Rules.\n#[Text] ==> Admin Chat.\n*[Text] ==> Team Chat.\n/objective ==> Objective.\n/admins ==> Admins Online.\n/report [id] [reason] .\n/animlist ==> Animations List.\n/wthelp ==> Walkie Talkie Help.\n", "Ok", "Cancel");
		return 1;
	}
didnt work gave alot of errors undefined
________
hairy Webcam
Reply
#9

Quote:
Originally Posted by [AC
Etch ]
didnt work gave alot of errors undefined
It works just fine for me. Example:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Login", "bla bla bla bla bla bla bla bla bla bla bla bla bla\
                              \nbla bla bla bla bla bla bla bla bla bla bla bla bla\
                              \nbla bla bla bla bla bla bla bla bla bla bla bla bla."
, "OK", "Cancel");
Reply
#10

Quote:
Originally Posted by [AC
Etch ]
Код:
if(strcmp(cmd, "/help", true) == 0 || strcmp(cmd, "/cmds", true) == 0 || strcmp(cmd, "/commands", true) == 0)
	{
	  ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Help :","Account : /register , /login , /changepass , /getid , /resetstats.\
		\n_______________________________________________________________________________________________________________________________________________________________\
		Player : /stats , /givecash , /kill , /me , /pm , /changeclass , /shop.\
		\n________________________________________________________________________________________________________________________________________________________________\
		Other :\n/ahelp ==> Admin Commands\n/vhelp ==> V.I.P Help\n/rules ==> Rules.\n#[Text] ==> Admin Chat.\n*[Text] ==> Team Chat.\n/objective ==> Objective.\n/admins ==> Admins Online.\n/report [id] [reason] .\n/animlist ==> Animations List.\n/wthelp ==> Walkie Talkie Help.\n", "Ok", "Cancel");
		return 1;
	}
didnt work gave alot of errors undefined
^
^
look at that
________
FREE THEMES
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)