SA-MP Forums Archive
Problem with dialogs. - 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)
+--- Thread: Problem with dialogs. (/showthread.php?tid=341882)



Problem with dialogs. - [BG]BuLLDoZeR - 12.05.2012

Hello i have a problem with the dialogs in my server. When i run anything FilterScript with Dialog and write the comand like : /radio it show the first dialog but when choose anything and closes and nothing happens. I try with 2-3 fs with dialogs and only first work...


Re: Problem with dialogs. - RedWingz - 12.05.2012

What ever your filterscript name is for the radio, put that first on your server.cfg file.
For example:

Код:
filterscripts Radio Others Here....
Hope this helped.


Re: Problem with dialogs. - [BG]BuLLDoZeR - 12.05.2012

Quote:
Originally Posted by RedWingz
Посмотреть сообщение
What ever your filterscript name is for the radio, put that first on your server.cfg file.
For example:

Код:
filterscripts Radio Others Here....
Hope this helped.
I know that... Problem is when i set them and write the command it show only the first dialog... Second, Third not work...


Re: Problem with dialogs. - RedWingz - 12.05.2012

What are the dialog id's you are using ? They can't be all the same number as it will make the other dialogs not function.


Re: Problem with dialogs. - doreto - 12.05.2012

Quote:
Originally Posted by [BG]BuLLDoZeR
Посмотреть сообщение
I know that... Problem is when i set them and write the command it show only the first dialog... Second, Third not work...
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if( dialogid == DIALOG_DIALOG1 )
    {
        //dialog 1
        return true;
    }
    if( dialogid == DIALOG_DIALOG2 )
    {
        //dialog 2
        return true;
    }
    if( dialogid == DIALOG_DIALOG3 )
    {
        //dialog 3
        return true;
    }
    return true;
}
On every dialog response you can set ShowPlayerDialog() and it will show next dialog thats good for shops and ect..


Re: Problem with dialogs. - .FuneraL. - 12.05.2012

Change your dialog id , recompile and try.