Jump to content
  • Create New...
  • 0

C++ problem



  • Premium

Hi !

I try to compile this code part and i get some errors. Some help ?

if (ch->GetParty())
		#include "party.h"
		TMemberMap::iterator it;
		std::string listOfPlayers;
		for (it = m_memberMap.begin(); it != m_memberMap.end(); ++it)
			listOfPlayers += " - " + it->second->strName;
cmd_general.cpp:2426: error: 'TMemberMap' has not been declared
cmd_general.cpp:2426: error: expected `;' before 'it'
cmd_general.cpp:2429: error: 'it' was not declared in this scope
cmd_general.cpp:2429: error: 'm_memberMap' was not declared in this scope

I have included "party.h".

Thank you !

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.