SA-MP Forums Archive
error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - 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: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] (/showthread.php?tid=531401)



error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - SpikY_ - 12.08.2014

Fixed!!


Re: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - Dignity - 12.08.2014

The issue lies here.

pawn Код:
// Everything that follows after this line (if defined filterscript) will only be called if FILTERSCRIPT is defined.
#if defined FILTERSCRIPT

////////////////////////
////////////#defines////
///////////////////////

#define DIALOG_DONATE 342


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else
Put it after the #else line, or before the #if defined FILTERSCRIPT line.


Re: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - SpikY_ - 12.08.2014

Thank you bro . but still one error remain ..


lines are:
Код:
			    ShowPlayerDialog(playerid,1234,DIALOG_STYLE_LIST,"{FF00E6}Per Month {FFFF00}Admin level {FF0000}1/2/3 {5D97B6}package",dialog,"Close","");
			    }
			}
		}
	}
	return 1;
}
Error is:
Код:
D:\Mini-Mission\filterscripts\donation.pwn(86) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Error is on :
Код:
return 1;



Re: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - Stinged - 12.08.2014

Fix your indentation and you will see where your error is:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if ( dialogid == DIALOG_DONATE )
    {
        if(response)
        {
            if(listitem==0)
            {
                new dialog[2000];
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n");
                strcat(dialog,"{FF0000}>>\n\n");
                strcat(dialog,"{FFFF00}Admin Level 1 {F7ECA4}(Per Month) {FFFF00}Package\n");
                strcat(dialog,"{F4BD70}Admin lvl 1 For {FFFFFF}30 {F4BD70}days - For {FFFFFF}[{CDC8C2}$400{FFFFFF}]\n");
                strcat(dialog,"lol\n");
                strcat(dialog,"xD\n");
                strcat(dialog,"[][]\n");
                strcat(dialog,"()()\n");
                ShowPlayerDialog(playerid,1234,DIALOG_STYLE_LIST,"{FF00E6}Per Month {FFFF00}Admin level {FF0000}1/2/3 {5D97B6}package",dialog,"Close","");
            }
        }
    }
    } // What is this?
    return 1;
}
                } // What is this?



Re: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - SpikY_ - 12.08.2014

i dnt get you bro , please fix it D:


Re: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - Stinged - 12.08.2014

Quote:
Originally Posted by NGEN123
Посмотреть сообщение
i dnt get you bro , please fix it D:
I already did..


Re: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - SpikY_ - 12.08.2014

:/ np .. i fix it :/


Re: error 017: undefined symbol "DIALOG_DONATE" [ Please Help ] - Stinged - 12.08.2014

Quote:
Originally Posted by NGEN123
Посмотреть сообщение
:/ np .. i fix it :/
What?

Didn't you see the "What's this" comment?
That means removing them would fix the problem..