[HELP] Dialog
#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


Messages In This Thread
[HELP] Dialog - by V4at - 05.04.2012, 12:27
Re: [HELP] Dialog - by .FuneraL. - 05.04.2012, 12:37
Re: [HELP] Dialog - by Scripter12345 - 05.04.2012, 12:49
Re: [HELP] Dialog - by Ezay - 05.04.2012, 12:53
Re: [HELP] Dialog - by Mark™ - 05.04.2012, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)