[HELP] Dialog
#1

How to create a big dialog with DIALOG_STYLE_MSGBOX style? When the line does not fit I add \ but still another line of me shows the error.
Reply
#2

An Example of command Msg Dialog Box

pawn Код:
if(strcmp("/example", cmdtext, true) == 0)
{
     new Ex[999]
     new string[256]
     format(string, sizeof(string), "Example\n"); strcat(Ex, string);
     format(string, sizeof(string), "Example2\n"); strcat(Ex, string);
     format(string, sizeof(string), "Example3\n"); strcat(Ex, string);
     ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Example Name", Ex, "Ok", "");
     return 1;
}
Reply
#3

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
An Example of command Msg Dialog Box

pawn Код:
if(strcmp("/example", cmdtext, true) == 0)
{
     new Ex[999]
     new string[256]
     format(string, sizeof(string), "Example\n"); strcat(Ex, string);
     format(string, sizeof(string), "Example2\n"); strcat(Ex, string);
     format(string, sizeof(string), "Example3\n"); strcat(Ex, string);
     ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Example Name", Ex, "Ok", "");
     return 1;
}
Or if you are using ZCMD

Add this to the top of your script

#define DIALOG_EXAMPLE 1
pawn Код:
CMD:example(playerid, params[])
{
        ShowPlayerDialog(playerid, DIALOG_EXAMPLE, DIALOG_STYLE_MSGBOX, "Option 1","Option 2", "Select" " Cancel ");
}
Reply
#4

You Could Use Funreal's Way, Althought
ZCMD is a Fast Command Processor,
Scripter12345's Method is a Better Option,


Cheers,
Ezay
\o/
Reply
#5

Quote:
Originally Posted by Scripter12345
Посмотреть сообщение
Or if you are using ZCMD

Add this to the top of your script

#define DIALOG_EXAMPLE 1
pawn Код:
CMD:example(playerid, params[])
{
        ShowPlayerDialog(playerid, DIALOG_EXAMPLE, DIALOG_STYLE_MSGBOX, "Option 1","Option 2", "Select" " Cancel ");
        return 1;
}
You forgot to add return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)