Problem with Dialogs
#1

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(playeridparams[])
{
    
ShowPlayerDialog(playeridD_TuningList+1DIALOG_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?
Reply
#2

Nvm. Figured out by my salf. Sorry.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)