SA-MP Forums Archive
error 017: undefined symbol - 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 (/showthread.php?tid=461900)



error 017: undefined symbol - Ponii - 04.09.2013

error 017: undefined symbol "UpdateConfig"

error 017: undefined symbol "SavePlayer"

error 017: undefined symbol "DestroyAllMenus"

error 017: undefined symbol "SavePlayer"

error 017: undefined symbol "SavePlayer"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "VBanCheck"

error 017: undefined symbol "SaveToFile"

error 017: undefined symbol "SaveToFile"

error 017: undefined symbol "SavePlayer"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "CarDeleter"

error 017: undefined symbol "AdvanceSpectate"


error 017: undefined symbol "GetName"

error 017: undefined symbol "GetName"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "JailPlayer"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "PlayerName2"

error 017: undefined symbol "PlayerName2"

Every error line :
Код:
		SavePlayer(i);



Re: error 017: undefined symbol - Tomer!.$ - 04.09.2013

Show us the entire function.


Re: error 017: undefined symbol - Ponii - 04.09.2013

Код:
public SaveStats()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		SendClientMessage(i, COLOR_WHITE,"Your stats has autmatically been "COL_BLUE"SAVED");
		SavePlayer(i);
	}
	return 1;
}
forward SavePlayerStats(playerid);
public SavePlayerStats(playerid) {
    if(PlayerInfo[playerid][LoggedIn] == 1) {
        SavePlayer(playerid);



Re: error 017: undefined symbol - Tomer!.$ - 04.09.2013

I'm going to need the all of the functions involving this, including SavePlayer.


Re: error 017: undefined symbol - Ponii - 04.09.2013

I don't know what you mean,

but the error lines are like this.
line 1212
Код:
UpdateConfig();
line 1660
Код:
SavePlayer(i);
line 1664
Код:
DestroyAllMenus();
line 1674
Код:
SavePlayer(i);
line 1681
Код:
SavePlayer(playerid);
Код:
public OnGameModeExit()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    SavePlayer(i);
	}
	KillTimer(PingTimer);
	#if defined USE_MENUS
	DestroyAllMenus();
	#endif
	return 1;
}

public SaveStats()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		SendClientMessage(i, COLOR_WHITE,"Your stats has autmatically been "COL_BLUE"SAVED");
		SavePlayer(i);
	}
	return 1;
}
forward SavePlayerStats(playerid);
public SavePlayerStats(playerid) {
    if(PlayerInfo[playerid][LoggedIn] == 1) {
        SavePlayer(playerid);
	}
	return 1;
}



Re: error 017: undefined symbol - Tomer!.$ - 04.09.2013

I somewhat believe you just copied some of the functions from some other script, but you forgot to copy all the necessary things.
You are using "SavePlayer(i);" but yet I can't see any SavePlayer(playerid); function..
You used "UpdateConfig();" yet I can't see any public/stock/whatever of UpdateConfig..
And the list goes on and on..

Therefore, these are undefined symbols.


Re: error 017: undefined symbol - Ponii - 04.09.2013

C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(32) : error 010: invalid function or declaration
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(3 : error 010: invalid function or declaration
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(41) : error 017: undefined symbol "E_CLEO_DATA"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(70) : error 017: undefined symbol "E_CPS_SPAMCOUNT"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(71) : error 017: undefined symbol "E_CPS_TICK"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(90) : error 017: undefined symbol "E_CPS_TICK"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(94) : error 017: undefined symbol "E_CPS_SPAMCOUNT"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(95) : error 017: undefined symbol "E_CPS_SPAMCOUNT"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(101) : error 017: undefined symbol "E_CPS_SPAMCOUNT"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(103) : error 017: undefined symbol "E_CPS_TICK"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(116) : error 025: function heading differs from prototype
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(11 : error 017: undefined symbol "newstate"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(120) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(122) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(124) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(127) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(12 : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(131) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(142) : error 025: function heading differs from prototype
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(145) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(149) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(150) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(152) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(156) : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(15 : error 017: undefined symbol "playerid"
C:\Users\SAMP\Desktop\samp14\pawno\include\fuckCle o.inc(159) : error 017: undefined symbol "playerid"

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


26 Errors.


Re: error 017: undefined symbol - Konstantinos - 04.09.2013

Quote:
Originally Posted by Tomer!.$
Посмотреть сообщение
I somewhat believe you just copied some of the functions from some other script, but you forgot to copy all the necessary things.
Exactly.

It's like doing:
pawn Код:
#include < a_samp >

main( )
{
    Function1( );
    Function2( );
    Function3( );
    Function4( );
    Function5( );
    Function6( );
}
If you compile the above, it will find them undefined them symbols because you did not add the function in it.


Re: error 017: undefined symbol - Ponii - 04.09.2013

It worked before, i never editted them. and when i tried to compile it game me those erorrs

when i compile my backup script, it doesnt show any errors


Re: error 017: undefined symbol - zrelly - 04.09.2013

Please help us ):