Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


#ActualBlack-Rook

Posted 09 December 2012 - 09:33 PM

EDIT: Never mind, I see the problem, I shouldn't have initialized it as City Ice_Palace_City() -> But Ice_Palace_City.

Stupid mistake!

#4Black-Rook

Posted 09 December 2012 - 09:33 PM

EDIT: Never mind, I see the problem, I shouldn't have initlaized it as City Ice_Palace_City() -> But Ice_Palace_City.

Stupid mistake!

#3Black-Rook

Posted 09 December 2012 - 09:33 PM

The code used in the main function is nothing more than a check.

[source lang="cpp"]if (Ice_Palace_City().Check_City_Screen()){// Do Stuff}[/source]


There is nothing to really show code wise, I made a simple version of the class (Not my real class), same problem.

City.h
[source lang="cpp"]class City{private: // City Screen bool City_Screen_Active;public: // Constructor City(); // Destructor ~City(); // Check City Screen bool Check_City_Screen();};[/source]


City.cpp
[source lang="cpp"]#include "City.h"// ConstructorCity::City(){ City_Screen_Active = false;}// DestructorCity::~City(){}// Check City Screenbool City::Check_City_Screen(){ return City_Screen_Active;}[/source]

In the main.cpp file, I globally declared Ice_Palace_City(), then when used in the main function to check I still get the error.

Never mind, I see the problem, I shouldn't have initlaized it as City Ice_Palace_City() -> But Ice_Palace_City.

Stupid mistake!

#2Black-Rook

Posted 09 December 2012 - 09:28 PM

The code used in the main function is nothing more than a check.

[source lang="cpp"]if (Ice_Palace_City().Check_City_Screen()){// Do Stuff}[/source]


There is nothing to really show code wise, I made a simple version of the class (Not my real class), same problem.

City.h
[source lang="cpp"]class City{private: // City Screen bool City_Screen_Active;public: // Constructor City(); // Destructor ~City(); // Check City Screen bool Check_City_Screen();};[/source]


City.cpp
[source lang="cpp"]#include "City.h"// ConstructorCity::City(){ City_Screen_Active = false;}// DestructorCity::~City(){}// Check City Screenbool City::Check_City_Screen(){ return City_Screen_Active;}[/source]

In the main.cpp file, I globally declared Ice_Palace_City(), then when used in the main function to check I still get the error.

#1Black-Rook

Posted 09 December 2012 - 09:27 PM

The code used in the main function is nothing more than a check.

[source lang="cpp"]if (Ice_Palace_City().Check_City_Screen()){// Do Stuff}[/source]


There is nothing to really show code wise, I made a simple version of the class (Not my real class), same problem.

[source lang="cpp"]class City{private: // City Screen bool City_Screen_Active;public: // Constructor City(); // Destructor ~City(); // Check City Screen bool Check_City_Screen();};[/source]



[source lang="cpp"]#include "City.h"// ConstructorCity::City(){ City_Screen_Active = false;}// DestructorCity::~City(){}// Check City Screenbool City::Check_City_Screen(){ return City_Screen_Active;}[/source]

In the main.cpp file, I globally declared Ice_Palace_City(), then when used in the main function to check I still get the error.

PARTNERS