[HELP]Undefined symbol errors when symbol is defined
#1

Code:
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(4575) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5211) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5288) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5289) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5290) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5311) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5417) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5418) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5504) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5515) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5523) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5533) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5597) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5608) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5612) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5617) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(5626) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(6203) : error 017: undefined symbol "LoopingAnim"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(6242) : error 017: undefined symbol "GetPlayersInTeam"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(6330) : error 017: undefined symbol "GetPlayersInTeam"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(6335) : error 017: undefined symbol "GetPlayersInTeam"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(6660) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(6669) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(6924) : error 017: undefined symbol "SetPlayerToTeamColour"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(7144) : error 017: undefined symbol "PlayerName"
C:\Users\Preston\Desktop\SA-MP Servers\Lsrcr\gamemodes\SQLite1.8.pwn(7151) : error 017: undefined symbol "PlayerName"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
I am getting all of these errors for an undefined symbol even though the symbol is clearly defined as shown below.
pawn Code:
stock PlayerName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    return name;
}
Reply
#2

Nothing wrong in the 'PlayerName' function. You might need to show the lines in which you're getting the errors.
Reply
#3

Are you using these lines in your script?

pawn Code:
#if defined
#endif
Reply
#4

Looks like a missing curly bracket to me somewhere. That often causes issues like these for me. Check the changes you made since you last successfully compiled.
Reply
#5

the stock put in top of script here exemple:
Code:
//=====[Includes]======
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <streamer>
#include <yom_buttons>
#include <JunkBuster>
#include <JunkBuster_FS>
#include <SpikeStrip>
#include <Dini>
#include <Dutils>
main() {
}
//======[Statics]==========
static gTeam[MAX_PLAYERS];
static fTeam[MAX_PLAYERS];
//________________________________________[Stocks]_____________________________________________
stock PlayerName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    return name;
}
Reply
#6

These can be caused by a brace ( { or } ) is missing.
Reply
#7

Since I've been trying to get Double-O-Files_2 to work it was showing me different errors so when I decided to switch back to dini and dudb until Double-O-Seven could get his include fixed, that's when I realized there was a problem. Anybody know a somewhat easy way how to find where this missing bracket is?
Reply
#8

You should review your latest changes at your GameMode.
Reply
#9

The problem is, when I was converting to Double-O-Files 2, it would show a different set of errors and I never cared to look at the actual script to make sure there weren't any errors. Now I'm using dini/dudb as a temporary fix and I just realized that these errors started appearing and I have no idea where to look in a 30k+ gamemode.
Reply
#10

I'm sure someone has some idea of going about fixing this...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)