error 017: undefined symbol "DIALOG_DONATE" [ Please Help ]
#1

Fixed!!
Reply
#2

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.
Reply
#3

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;
Reply
#4

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?
Reply
#5

i dnt get you bro , please fix it D:
Reply
#6

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

:/ np .. i fix it :/
Reply
#8

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..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)