SA-MP Forums Archive
dialog help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dialog help (/showthread.php?tid=131019)



dialog help - aircombat - 01.03.2010

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


Re: dialog help - bajskorv123 - 01.03.2010

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


Re: dialog help - aircombat - 01.03.2010

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


Re: dialog help - wafffllesss - 01.03.2010

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[]);



Re: dialog help - aircombat - 01.03.2010

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


Re: dialog help - Correlli - 01.03.2010

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[]);



Re: dialog help - wafffllesss - 01.03.2010

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



Re: dialog help - aircombat - 01.03.2010

Код:
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


Re: dialog help - Correlli - 01.03.2010

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



Re: dialog help - aircombat - 01.03.2010

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