SA-MP Forums Archive
[HELP]Undefined symbol errors when symbol is defined - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Undefined symbol errors when symbol is defined (/showthread.php?tid=266243)



[HELP]Undefined symbol errors when symbol is defined - PCheriyan007 - 04.07.2011

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



Re: [HELP]Undefined symbol errors when symbol is defined - [DM]Kane - 04.07.2011

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


Re: [HELP]Undefined symbol errors when symbol is defined - MadeMan - 04.07.2011

Are you using these lines in your script?

pawn Code:
#if defined
#endif



Re: [HELP]Undefined symbol errors when symbol is defined - XpanD - 04.07.2011

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.


Re: [HELP]Undefined symbol errors when symbol is defined - Skaizo - 04.07.2011

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



Re: [HELP]Undefined symbol errors when symbol is defined - Shadoww5 - 04.07.2011

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


Re: [HELP]Undefined symbol errors when symbol is defined - PCheriyan007 - 04.07.2011

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?


Re: [HELP]Undefined symbol errors when symbol is defined - Shadoww5 - 05.07.2011

You should review your latest changes at your GameMode.


Re: [HELP]Undefined symbol errors when symbol is defined - PCheriyan007 - 05.07.2011

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.


Re: [HELP]Undefined symbol errors when symbol is defined - PCheriyan007 - 07.07.2011

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