Problem with 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: Problem with Dialogs (
/showthread.php?tid=559736)
Problem with Dialogs -
GuitarMan - 24.01.2015
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:
PHP код:
case D_TuningList+1:
{
// the script.
}
and heres the command that uses this dialog id:
PHP код:
CMD:dialogs(playerid, params[])
{
ShowPlayerDialog(playerid, D_TuningList+1, DIALOG_STYLE_LIST, "...", "...", "Ok", "Cancel");
return 1;
}
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?
Re: Problem with Dialogs -
GuitarMan - 24.01.2015
Nvm. Figured out by my salf. Sorry.