Dialog probs
#1

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
Reply
#2

You have no response that's why.
Reply
#3

do you ever see the dialog
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)