Undefined Symbols even though they have stocks
#1

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]);
			}
	}
}
Reply
#2

show us error lines and codes.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)