Postado Julho 27, 2020 5 anos inline int32_t Item::getCriticalHitChance() const { bool ok; int32_t v = getIntegerAttribute("criticalhitchance", ok); if(ok) return v; return items[id].criticalHitChance; } inline int32_t Item::getDodgeChance() const { bool ok; int32_t v = getIntegerAttribute("dodgechance", ok); if(ok) return v; return items[id].dodgeChance; } inline int32_t Item::getLifeAbsorb() const { bool ok; int32_t v = getIntegerAttribute("lifeabsorb", ok); if(ok) return v; return items[id].lifeAbsorb; } inline int32_t Item::getManaAbsorb() const { bool ok; int32_t v = getIntegerAttribute("manaabsorb", ok); if(ok) return v; return items[id].manaAbsorb; } inline int32_t Item::getLifeLeech() const { bool ok; int32_t v = getIntegerAttribute("lifeleech", ok); if(ok) return v; return items[id].lifeLeech; } inline int32_t Item::getManaLeech() const { bool ok; int32_t v = getIntegerAttribute("manaleech", ok); if(ok) return v; return items[id].manaLeech; } Agora, Senju uchira disse: inline int32_t Item::getCriticalHitChance() const { bool ok; int32_t v = getIntegerAttribute("criticalhitchance", ok); if(ok) return v; return items[id].criticalHitChance; } inline int32_t Item::getDodgeChance() const { bool ok; int32_t v = getIntegerAttribute("dodgechance", ok); if(ok) return v; return items[id].dodgeChance; } inline int32_t Item::getLifeAbsorb() const { bool ok; int32_t v = getIntegerAttribute("lifeabsorb", ok); if(ok) return v; return items[id].lifeAbsorb; } inline int32_t Item::getManaAbsorb() const { bool ok; int32_t v = getIntegerAttribute("manaabsorb", ok); if(ok) return v; return items[id].manaAbsorb; } inline int32_t Item::getLifeLeech() const { bool ok; int32_t v = getIntegerAttribute("lifeleech", ok); if(ok) return v; return items[id].lifeLeech; } inline int32_t Item::getManaLeech() const { bool ok; int32_t v = getIntegerAttribute("manaleech", ok); if(ok) return v; return items[id].manaLeech; } NAO TEM NA TFS 0.4.0.0 @up
Postado Agosto 4, 2020 5 anos Spoiler In file included from item.h:28:0, from tile.h:23, from map.h:26, from creature.h:28, from player.h:23, from actions.cpp:24: items.h:168:28: error: redeclaration of ‘int32_t ItemType::criticalHitChance’ int32_t criticalHitChance, dodgeChance, lifeAbsorb, manaAbsorb, lifeLeech, manaLeech; ^ items.h:161:19: note: previous declaration ‘int32_t ItemType::criticalHitChance’ int32_t attack, criticalHitChance, extraAttack, defense, extraDefense, armor, breakChance, hitCha ^ In file included from tile.h:23:0, from map.h:26, from creature.h:28, from player.h:23, from actions.cpp:24: item.h:122:2: error: redefinition of ‘ATTR_CRITICALHITCHANCE’ ATTR_CRITICALHITCHANCE = 44, ^ item.h:116:2: note: ‘ATTR_CRITICALHITCHANCE’ previously defined here ATTR_CRITICALHITCHANCE = 44, ^ In file included from tile.h:23:0, from map.h:26, from creature.h:28, from player.h:23, from actions.cpp:24: item.h:269:11: error: ‘int32_t Item::getCriticalHitChance() const’ cannot be overloaded int32_t getCriticalHitChance() const; ^ item.h:265:11: error: with ‘int32_t Item::getCriticalHitChance() const’ int32_t getCriticalHitChance() const; ^ item.h:461:16: error: redefinition of ‘int32_t Item::getCriticalHitChance() const’ inline int32_t Item::getCriticalHitChance() const ^ item.h:411:16: note: ‘int32_t Item::getCriticalHitChance() const’ previously defined here inline int32_t Item::getCriticalHitChance() const ^ In file included from actions.cpp:24:0: player.h:493:19: error: ‘virtual int32_t Player::getCriticalHitChance() const’ cannot be overloaded virtual int32_t getCriticalHitChance() const; ^ player.h:491:19: error: with ‘virtual int32_t Player::getCriticalHitChance() const’ virtual int32_t getCriticalHitChance() const; ^ Makefile:567: recipe for target 'actions.o' failed make[1]: *** [actions.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/srcteste' Makefile:418: recipe for target 'all' failed make: *** [all] Error 2 eu pensei que tinha errado algo, mas refiz tudo do zero com mais atenção e deu novamente o mesmo erro, estou usando OTX2 Em 26/07/2020 em 15:05, Senju uchira disse: estou com esse erro ao compila estou mesmo problema erro ao compila linux
Postado Agosto 4, 2020 5 anos 30 minutos atrás, Yinko Yan San disse: Mostrar conteúdo oculto In file included from item.h:28:0, from tile.h:23, from map.h:26, from creature.h:28, from player.h:23, from actions.cpp:24: items.h:168:28: error: redeclaration of ‘int32_t ItemType::criticalHitChance’ int32_t criticalHitChance, dodgeChance, lifeAbsorb, manaAbsorb, lifeLeech, manaLeech; ^ items.h:161:19: note: previous declaration ‘int32_t ItemType::criticalHitChance’ int32_t attack, criticalHitChance, extraAttack, defense, extraDefense, armor, breakChance, hitCha ^ In file included from tile.h:23:0, from map.h:26, from creature.h:28, from player.h:23, from actions.cpp:24: item.h:122:2: error: redefinition of ‘ATTR_CRITICALHITCHANCE’ ATTR_CRITICALHITCHANCE = 44, ^ item.h:116:2: note: ‘ATTR_CRITICALHITCHANCE’ previously defined here ATTR_CRITICALHITCHANCE = 44, ^ In file included from tile.h:23:0, from map.h:26, from creature.h:28, from player.h:23, from actions.cpp:24: item.h:269:11: error: ‘int32_t Item::getCriticalHitChance() const’ cannot be overloaded int32_t getCriticalHitChance() const; ^ item.h:265:11: error: with ‘int32_t Item::getCriticalHitChance() const’ int32_t getCriticalHitChance() const; ^ item.h:461:16: error: redefinition of ‘int32_t Item::getCriticalHitChance() const’ inline int32_t Item::getCriticalHitChance() const ^ item.h:411:16: note: ‘int32_t Item::getCriticalHitChance() const’ previously defined here inline int32_t Item::getCriticalHitChance() const ^ In file included from actions.cpp:24:0: player.h:493:19: error: ‘virtual int32_t Player::getCriticalHitChance() const’ cannot be overloaded virtual int32_t getCriticalHitChance() const; ^ player.h:491:19: error: with ‘virtual int32_t Player::getCriticalHitChance() const’ virtual int32_t getCriticalHitChance() const; ^ Makefile:567: recipe for target 'actions.o' failed make[1]: *** [actions.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/srcteste' Makefile:418: recipe for target 'all' failed make: *** [all] Error 2 eu pensei que tinha errado algo, mas refiz tudo do zero com mais atenção e deu novamente o mesmo erro, estou usando OTX2 estou mesmo problema erro ao compila linux JA ERA MEU AMIGO QUEM CONSEGUIL CONSEGUIL.
Postado Agosto 4, 2020 5 anos 11 minutos atrás, Senju uchira disse: JA ERA MEU AMIGO QUEM CONSEGUIL CONSEGUIL. ta foda kk
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.