• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem in Copmiling

Ramy Sedkey

New Member
Joined
Dec 7, 2013
Messages
78
Reaction score
2
I got this problem while I was compiling
1212.jpg


and this is the first time that happen
 
it is too long
when I click on the error report it gives me the ling I sent to you :D

but this is the the full line
Code:
{
    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;
    }
 
and when I tried to make the level more that 717k in your tutorial i couldn't find this coda
Code:
if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp
    msg->put<uint32_t>(0x7FFFFFFF);
in protocolgame.cpp
 
Last edited:
Back
Top