06.05.2014, 10:50
Hello,
In here, I am going to show you how to create a basic help dialog with pages.
What do i need?
Just focus with me .
Start:
At the top of your script, Put:
Now at your commands (ZCMD or YCMD), Use:
Find OnDialogResponse:, Type this under:
Well, That is it.
At "Put your messages here", It means enter your help words here :P.
If this helped you, +Rep me.
In here, I am going to show you how to create a basic help dialog with pages.
What do i need?
Just focus with me .
Start:
At the top of your script, Put:
pawn Код:
#define DIALOG_HELP1 4500
#define DIALOG_HELP2 4501
#define DIALOG_HELP3 4502
pawn Код:
CMD:help(playerid,params[]);
{
ShowPlayerDialog(playerid, DIALOG_HELP1, DIALOG_STYLE_MSGBOX, "Help: Page 1", "Put your message here\nPut your message here", "Next Page", "Cancel");
return 1;
}
pawn Код:
switch dialogid;
{
case DIALOG_HELP1:
{
if(response)
{
ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "Help: Page 2", "Put your messages here\nPut your messages here", "Next Page", "First Page");
}
}
case DIALOG_HELP2:
{
if(response)
{
ShowPlayerDialog(playerid, DIALOG_HELP3, DIALOG_STYLE_MSGBOX, "Help: Page 3", "Put your message here\nPut your message here", "First Page", "Second Page");
}
else
{
ShowPlayerDialog(playerid, DIALOG_HELP1, DIALOG_STYLE_MSGBOX, "Help: Page 1", "Put your message here\nPut your message here", "Next Page", "Cancel");
}
}
case DIALOG_HELP3:
{
if(response)
{
ShowPlayerDialog(playerid, DIALOG_HELP1, DIALOG_STYLE_MSGBOX, "Help: Page 1", "Put your message here\nPut your message here", "Next Page", "Cancel");
}
else
{
ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "Help: Page 2", "Put your message here\nPut your message here", "Next Page", "First Pagel");
}
}
At "Put your messages here", It means enter your help words here :P.
If this helped you, +Rep me.