Okay, so I am making a text RPG, and for some reason the Player object makes this error:
I don't get it at all, does anyone know if they can help me, Player's code is:player.obj : error LNK2001: unresolved external symbol "public: void __thiscall PLAYER::SetAmo(int)" (?SetAmo@PLAYER@@QAEXH@Z)
C:\Documents and Settings\Glitch\Desktop\Games\Skets series\Skets in CRYSTAL BOND\Release\Skets in CRYSTAL BOND.exe : fatal error LNK1120: 1 unresolved externals
Thanks in advanced, no need to break the code down, I mainly want to know what error Visual C++ is giving me.Code://Player behavior class PLAYER { private: //System int level; int gems; //Gems are money int exp; //Stats int atk; //Attack int def; //Defence int spd; //Speed int hlt; //Health int amo; //Laser Energy //Maxium int MaxHlt; //Maxium Health int MaxAmo; //Maxium Laser Energy public: void SetName(char* newname); void GetName(); //Gems void SetGems(int newgems); void AddGems(int value); int GetGems(); //Current Health and Laser Energy void SetHlt(int newhlt); //Health void AddHlt(int value); int GetHlt(); void SetAmo(int newAmo); //Laser Energy void AddAmo(int value); int GetAmo(); //Stats void SetAtk(int newatk); //Attack int GetAtk(); void SetDef(int newdef); //Defence int GetDef(); void SetSpd(int newspd); //Speed int GetSpd(); void SetExp(int newexp); //Experience void AddExp(int addexp); int GetExp(); void SetMaxHlt(int newMaxHlt); //Max Health int GetMaxHlt(); void SetMaxAmo(int newMaxAmo); //Max Laser Energy int GetMaxAmo(); };