About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
problem with the class constructor "Map"
Author Message
Babulesnik Offline
Member

Post: #1
problem with the class constructor "Map"
When compiling an error: "'StructListRooms' : no appropriate default constructor available"
*h
Code:
struct StructListRooms
{
    StructRoom Room;

    Map<Str,StructRoom>mapRooms;

    bool addRoom  (Str &NameRoom , Byte &MaxPlayers , Flt &Bet , StructPlayer &LinkPlayer );
    bool addPlayer(Str &NameRoom , StructPlayer     &LinkPlayer                           );  
    int  findRoom (Str &NameRoom , Byte &ReturnTotalPlayers , Byte &ReturnMaxPLayers      );

}extern ListRooms;

*.cpp
Code:
StructListRooms ListRooms;

static Bool Create(StructRoom &Room , Str &key , Ptr user) {return true;}

  Map<Str,StructRoom>mapRooms(Create,Compare,NULL);
11-27-2011 08:13 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #2
RE: problem with the class constructor "Map"
Problem solved)
11-27-2011 10:09 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #3
RE: problem with the class constructor "Map"
You might want to post your final resolution so others can see.

www.thinkplaystudios.com
11-28-2011 07:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply