24.01.2015, 23:23
Hey.
Was working on my first dialog ever and im facing something weird.
So heres the code:
in public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
i added:
and heres the command that uses this dialog id:
When im trying to compile it, getting error: "error 017: undefined symbol "D_TuningList". So i scrolled down to the line, where the error appears, and it appeared to be thisone. " case D_TuningList+1:". Do i need to predefine the dialogid somewhere? Or is it something else?
Was working on my first dialog ever and im facing something weird.
So heres the code:
in public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
i added:
PHP код:
case D_TuningList+1:
{
// the script.
}
PHP код:
CMD:dialogs(playerid, params[])
{
ShowPlayerDialog(playerid, D_TuningList+1, DIALOG_STYLE_LIST, "...", "...", "Ok", "Cancel");
return 1;
}