SA-MP Forums Archive
Need help to disable 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: Need help to disable dialogs. (/showthread.php?tid=534808)



Need help to disable dialogs. - EPIC2LA - 31.08.2014

Hi Guys,

I just need a little time with you, as i want to disable my tutorial which is in dialogs, and if
the tutorial disability is impossible, so can i disable my QUIZ which is in dialogs also

Help me please by sending an answer how can i do it,
Thank you.

*Peace*


Re: Need help to disable dialogs. - PMH - 31.08.2014

Use dialog as -1 to close al dialogs player have

for example:
pawn Код:
ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Okay", "Engough", "", "");
this will remove all dialogs player is currently facing


Re: Need help to disable dialogs. - EPIC2LA - 31.08.2014

how ?

Код:
if(dialogid == DIALOG_QUIZ_8)
	{
 		if(response)
		{
			if(listitem == 0)
			{
					new tstr[1024];
                    ShowPlayerDialog(playerid, DIALOG_DO_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}YOU'VE PASSED THE QUIZ!", "You've answered all the questions successfully..", "OK", "");
					hidePlayerDialog(playerid);



Re: Need help to disable dialogs. - Kyance - 31.08.2014

Just comment;
pawn Код:
/*
if(dialogid == DIALOG_QUIZ_8)
    {
        if(response)
        {
            if(listitem == 0)
            {
                    new tstr[1024]; //i doubt you even need this
                    ShowPlayerDialog(playerid, DIALOG_DO_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}YOU'VE PASSED THE QUIZ!", "You've answered all the questions successfully..", "OK", "");
                    hidePlayerDialog(playerid);
//rest code here for DIALOG_QUIZ_8
*/
Or remove the tutorial stuff.


Re: Need help to disable dialogs. - EPIC2LA - 31.08.2014

Quote:
Originally Posted by PMH
Посмотреть сообщение
Use dialog as -1 to close al dialogs player have

for example:
pawn Код:
ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Okay", "Engough", "", "");
this will remove all dialogs player is currently facing
Im getting error : argument type mismatch (argument 4)
__________________________________________________ ____________________________________

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Just comment;
pawn Код:
/*
if(dialogid == DIALOG_QUIZ_8)
    {
        if(response)
        {
            if(listitem == 0)
            {
                    new tstr[1024]; //i doubt you even need this
                    ShowPlayerDialog(playerid, DIALOG_DO_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}YOU'VE PASSED THE QUIZ!", "You've answered all the questions successfully..", "OK", "");
                    hidePlayerDialog(playerid);
//rest code here for DIALOG_QUIZ_8
*/
Or remove the tutorial stuff.
It Crashes my PAWN Compiler!


Re: Need help to disable dialogs. - EPIC2LA - 31.08.2014

Anyone Or Even scripters..Can you contact me @ skype : anish.gowr1