Dialog
#1

hello
This code is so that you could do that if I'm writing a command will come in a dialog so far to go after him and when I click on any of it and there would be one more choice of options.
If you go to the first page and if you throw a second one then the other side. So any option to throw a special place.
Thanks in advance for your help

Код:
#include <a_samp>
#include <zcmd>
////////////////////////////////////////////////////////////////////////////////
#define DIALOG_0 8
#define DIALOG_1 9
#define DIALOG_2 10
#define DIALOG_3 11

////////////////////////////////////////////////////////////////////////////////
#define IGYTOVABB_1 16
#define IGYTOVABB_2 17
#define IGYTOVABB_3 18
////////////////////////////////////////////////////////////////////////////////

CMD:help(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_LIST,"Potkocsik","Cargo\nFluids","Vбlaszt","Kilйpйs");
    return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	////////////////////////////////////Potkocsi////////////////////////////////
	if(dialogid == DIALOG_0)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_1,DIALOG_STYLE_LIST,"Cargo","Cargo\nFluids","Next","Kilйpйs");
    }
    }
    if(listitem == 1)
    {
    ShowPlayerDialog(playerid,IGYTOVABB_1,DIALOG_STYLE_LIST,"1 IGYTOVABB","szцveg","Next","Vissza");
    }
    }
    ////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////
    if(dialogid == DIALOG_1)
    {
    if(!response) return ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_LIST,"Cim","---1---\n----2----\n----3----\n---4---\n---5--\n---6----","Vбlaszt","Kilйpйs");
    if(response)
    {
    ShowPlayerDialog(playerid,DIALOG_2,DIALOG_STYLE_LIST,"Cargo","---2---\n(fatelep rakodу->Sf supa save)\npapнr(fatelep rakodу->Sf finnancial center)\nйlelmiszer(Sf catering LTF->Sf szбntуfцld)\nluxuscikkek(san fierro port->Ls raktбr)\nьditцk(LS ocean dokkok->Sf supa save)","Next","Vissza");
    }
    }
    ////////////////////////////////////////////////////////////////////////////
    if(dialogid == DIALOG_2)
    {
    if(!response) return ShowPlayerDialog(playerid,DIALOG_1,DIALOG_STYLE_LIST,"Cargo","sf","Next","Vissza");
    if(response)
    {
    ShowPlayerDialog(playerid,DIALOG_3,DIALOG_STYLE_LIST,"3 Oldal","lv","Next","Vissza");
    }
    }
    ///////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////Igy Tovabb/////////////////////////////////
    if(dialogid == IGYTOVABB_1)
    {
    if(!response) return ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_LIST,"Cim","Pуtkocsi leirбs\nIgy tovabb","Vбlaszt","Kilepes");
    if(response)
    {
    ShowPlayerDialog(playerid,IGYTOVABB_2,DIALOG_STYLE_LIST,"2 IGYTOVABB","szцveg","Next","Vissza");
    }
    }
    if(dialogid == IGYTOVABB_2)
    {
    if(!response) return ShowPlayerDialog(playerid,IGYTOVABB_1,DIALOG_STYLE_LIST,"2 IGYTOVABB","---1---\n----2----\n----3----\n---4---\n---5--\n---6----","Next","Vissza");
    if(response)
    {
    ShowPlayerDialog(playerid,IGYTOVABB_3,DIALOG_STYLE_LIST,"3 IGYTOVABB","szцveg","Next","Vissza");
    }
    }
    if(dialogid == IGYTOVABB_3)
    {
    if(!response) return ShowPlayerDialog(playerid,IGYTOVABB_2,DIALOG_STYLE_LIST,"2 IGYTOVABB","szцveg","Next","Vissza");
    }
	return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)