error 017: undefined symbol "b" [ HELP NEEDED URGENT ]
#1

I was adding anti swear in my gm so this error came before adding this it was working perfectly
Error Code
Код:
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1704) : error 017: undefined symbol "b"
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1705) : error 017: undefined symbol "b"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код:
WasteDeAMXersTime()//Credits to Mauzen
{
    new b;
LINE NUMBER (1704) #emit load.pri b
LINE NUMBER (1705) #emit stor.pri b
}
Reply
#2

That code is fine. The error has something to do with code that you have edited.
Reply
#3

this is the code that i have added

Код:
#include <a_samp>
#define COLOR_RED 0xFF0000FF
 
new SwearWords[] = {
        "Fuck",
        "Bitch",
        "nigga",
        "gay",
        "lesbian",
        "loser",
        "dick",
        "ass",
        "shit",
        "cock",
        "suck",
        "penis",
        "bitch",
        "fucker",
        "fag",
        "faggot",
        "noob",
        "fu.ck",
        "www.",
        ".com",
        ".tk",
        ".org",
        ":7777",
        "1.",
        "2.",
        "3.",
        "4.",
        "5.",
        "6.",
        "7.",
        "8.",
        "9.",
        "0.",
        ".1",
        ".2",
        ".3",
        ".4",
        ".5",
        ".6",
        ".7",
        ".8",
        ".9",
        "1:",
        "2:",
        "3:",
        "4:",
        "5:",
        "6:",
        "7:",
        "8:",
        "9:",
        "0:",
        "crap",
        "sex",
        "porn",
};
 
#if defined FILTERSCRIPT
 
public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Anti swear/ad ");
        print("--------------------------------------\n");
        return 1;
}
 
public OnFilterScriptExit()
{
        return 1;
}
 
#endif
 
 
public OnPlayerText(playerid, text[])
{
    for(new i; i < sizeof(SwearWords); i++)
    {
        if(strfind(text, SwearWords[i], true) != -1) // IF you want SwearWords not to be case sensitiv change ' true ' to ' false '
        {
            SendClientMessage(playerid, COLOR_RED, "PLEASE DON'T SWEAR/ADVERTISE");
            return 0;
        }
    }
    return 1;
}
Reply
#4

pawn Код:
new SwearWords[][] = {
        "Fuck",
        "Bitch",
        "nigga",
        "gay",
        "lesbian",
        "loser",
        "dick",
        "ass",
        "shit",
        "cock",
        "suck",
        "penis",
        "bitch",
        "fucker",
        "fag",
        "faggot",
        "noob",
        "fu.ck",
        "www.",
        ".com",
        ".tk",
        ".org",
        ":7777",
        "1.",
        "2.",
        "3.",
        "4.",
        "5.",
        "6.",
        "7.",
        "8.",
        "9.",
        "0.",
        ".1",
        ".2",
        ".3",
        ".4",
        ".5",
        ".6",
        ".7",
        ".8",
        ".9",
        "1:",
        "2:",
        "3:",
        "4:",
        "5:",
        "6:",
        "7:",
        "8:",
        "9:",
        "0:",
        "crap",
        "sex",
        "porn"
};
After changing this, it compiles fine for me. See if you still get the error...
Reply
#5

still same error
Код:
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1704) : error 017: undefined symbol "b"
D:\TDm 2.0\ilkul new wala\gamemodes\NVCNR2.pwn(1705) : error 017: undefined symbol "b"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#6

Seems like you have forgotten a closing bracket somewhere near your function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)