SA-MP Forums Archive
Undefined Symbols even though they have stocks - 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: Undefined Symbols even though they have stocks (/showthread.php?tid=648863)



Undefined Symbols even though they have stocks - Ducati - 29.01.2018

I'm (still) trying to get this old gamemode to compile and I can't figure out why i'm getting "undefined symbol" for ALMOST every stock (but not all). Can anybody help?

Код:
#include <a_samp>
#include <a_mysql>
#include <a_actor>
#include <sscanf2>
#include <streamer>
#include <YSI\y_ini>
#include <foreach>
Example of errors:
Код:
: 
error 017: undefined symbol "ShowTextDrawMenu"
: error 017: undefined symbol "ShowTextDrawMenuItems"
 : error 017: undefined symbol "HideTextDrawMenu"
: error 017: undefined symbol "ShowTextDrawMenu"
: error 017: undefined symbol "ShowTextDrawMenuItems"
: error 017: undefined symbol "SavePlayerStats"
Example of one of the many stocks:
Код:
stock SavePlayerStats(playerid)
{
    if(!IsPlayerNPC(playerid) && PlayerInfo[playerid][pRegistered] == 1 && PlayerInfo[playerid][pLogged] == 1 && PlayerInfo[playerid][pSpawn] == 1) //Only saves if the player was logged in and spawned
    {
			new query[300],string[256],Float:Health,Float:Armour;

			if (PlayerInfo[playerid][pReturnWeapons] == 0)
			{
			for (new s=0; s<12; s++)
			{
			GetPlayerWeaponData(playerid, s, PlayerInfo[playerid][pWeapon][s],PlayerInfo[playerid][pAmmo][s]);
			}
	}
}



Re: Undefined Symbols even though they have stocks - Mugala - 29.01.2018

show us error lines and codes.


Re: Undefined Symbols even though they have stocks - Abagail - 29.01.2018

If it's 26 errors, it's probably a missing bracket or similiar somewhere. Try using something such as this.