SA-MP Forums Archive
error 017: undefined symbol "b" [ HELP NEEDED URGENT ] - 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 "b" [ HELP NEEDED URGENT ] (/showthread.php?tid=528487)



error 017: undefined symbol "b" [ HELP NEEDED URGENT ] - killing - 28.07.2014

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
}



Re: error 017: undefined symbol "b" [ HELP NEEDED URGENT ] - Threshold - 28.07.2014

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


Re: error 017: undefined symbol "b" [ HELP NEEDED URGENT ] - killing - 28.07.2014

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;
}



Re: error 017: undefined symbol "b" [ HELP NEEDED URGENT ] - Threshold - 28.07.2014

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


Re: error 017: undefined symbol "b" [ HELP NEEDED URGENT ] - killing - 28.07.2014

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.



Re : error 017: undefined symbol "b" [ HELP NEEDED URGENT ] - S4t3K - 28.07.2014

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