Ramy Sedkey
New Member
- Joined
- Dec 7, 2013
- Messages
- 78
- Reaction score
- 2
I got this problem while I was compiling
and this is the first time that happen

and this is the first time that happen
}
{
{
public:
#ifdef __ENABLE_SERVER_DIAGNOSTIC__
static uint32_t playerCount;
#endif
Player(const std::string& name, ProtocolGame* p);
virtual ~Player();
virtual Player* getPlayer() {return this;}
virtual const Player* getPlayer() const {return this;}
virtual CreatureType_t getType() const {return CREATURETYPE_PLAYER;}
static MuteCountMap muteCountMap;
virtual const std::string& getName() const {return name;}
virtual const std::string& getNameDescription() const {return nameDescription;}
virtual std::string getDescription(int32_t lookDistance) const;
const std::string& getSpecialDescription() const {return specialDescription;}
void setSpecialDescription(const std::string& desc) {specialDescription = desc;}
void manageAccount(const std::string& text);
bool isAccountManager() const {return (accountManager != MANAGER_NONE);}
void kick(bool displayEffect, bool forceLogout);
void setGUID(uint32_t _guid) {guid = _guid;}
uint32_t getGUID() const {return guid;}
static AutoList<Player> autoList;
virtual uint32_t rangeId() {return PLAYER_ID_RANGE;}
static bool sort(Player* lhs, Player* rhs) {return lhs->getName() < rhs->getName();}
void addList();
void removeList();
static uint64_t getExpForLevel(uint32_t lv)
{
static std::map<uint32_t, uint64_t> cache;
lv--;
std::map<uint32_t, uint64_t>::iterator it = cache.find(lv);
if(it != cache.end())
return it->second;
uint64_t exp = ((50ULL * (lv+1ULL) / 3ULL - 100ULL) * (lv+1ULL) + 850ULL / 3ULL) * (lv+1ULL) - 200ULL;
cache[lv] = exp;
return exp;
}
if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp
msg->put<uint32_t>(0x7FFFFFFF);