thanks did not notice that, but still getting error....
See if this makes sence..
first I create a Player. in main.cpp.
myMenuChoice = menu();
while (myMenuChoice != 4)
if (myMenuChoice == 1) // add a player
player[(numberOfPlayers++)].addPlayer((numberOfPlayers));//create player class
now it adds/creates player like so
void Player::addPlayer(int x)
now up to here, becuase i decleared Player Player it has all ready created 5 players right? and in the function addPlayer( its just printing out some text showing what player was addded? right?
Now a "player as been added" (addPlayer)
I can now change items in the class Player correct?
player[x].addMonster(monsterSelection);//add monster to this player class
where x = 1
should now run the addMonster function that is in the instance Player correct? Maybe i am missing something?
thanks for any help