Ir para conteúdo
  • 0

Erro ao compilar source numa função


izac ximenes

Pergunta

Iae galera blz?

to tentando compilar essa source mais ta dando erro nessa funçao

 

bool Map::placeCreature(const Position& centerPos, Creature* creature, bool extendedPos /*= false*/, bool forced /*= false*/)
{
Monster* monster = creature->getMonster();
    if(monster && g_config.getBool(ConfigManager::MONSTER_HAS_LEVEL))
    {
        uint8_t level;
        if(!monster->getMonsterType()->hideLevel)
        {
            if(monster->isSummon())
            {
                std::string value;
                
                monster->getMaster()->getStorage((std::string) "monster_level", value);
             
                uint8_t intValue = atoi(value.c_str());
                if(intValue || value == "0")
                    level = intValue;
                else
                    level = 1;
            }
            else
                level = monster->level;


            char buffer [10];
            monster->name = monster->getName() + " [" + itoa(level, buffer, 10) + "]";
        }
    }

ai da esse erro no log de compilaçao

 

C:\Users\---\Desktop\---\--\map.cpp In member function `bool Map::placeCreature(const Position&, Creature*, bool, bool)':

 

194

 

C:\Users\--\Desktop\---\--\map.cpp no matching function for call to `Creature::getStorage(std::string, std::string&)'

 

note C:\Users\--\Desktop\--\--\creature.h:324 candidates are: virtual bool Creature::getStorage(uint32_t, std::string&) const

 

 

alguem sabe como resolver?

 

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

×
×
  • Criar Novo...