SA-MP Forums Archive
Dialog probs - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog probs (/showthread.php?tid=163779)



Dialog probs - TouR - 28.07.2010

What makes this dialog dont work? I made it with command and it works, seems that OnDialogResponse is the problem


Код:
	if (strcmp("/command", cmdtext, true, 10) == 0)
	{
    	ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Blah Blah","Blah Blah","Done","Cancel");
		return 1;
	}



public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1)
	{
		if(response)
		{
// My staff here
		}
		return 1;
	}
	return 0;
}
The response have no effect


Re: Dialog probs - venturas12 - 28.07.2010

You have no response that's why.


Re: Dialog probs - snoob - 29.07.2010

do you ever see the dialog


Re: Dialog probs - TouR - 29.07.2010

Okay solved, The dialog worked perfect the problem was the number of the dialog