28.07.2010, 22:26
What makes this dialog dont work? I made it with command and it works, seems that OnDialogResponse is the problem
The response have no effect
Код:
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;
}

