Postado Novembro 15, 2020 5 anos Tive esses erros. Spoiler item.cpp: In static member function ‘static std::__cxx11::string Item::getDescription(const ItemType&, int32_t, const Item*, int32_t, bool)’: item.cpp:999:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1001:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Crit Chance:" << std::showpos << int32_t(item ? item->getCriticalHitChance() : it.criticalHitChance) << "%"<< std::noshowpos; ^ item.cpp:1011:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1013:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Dodge Chance:" << std::showpos << int32_t(item ? item->getDodgeChance() : it.dodgeChance) << "%"<< std::noshowpos; ^ item.cpp:1023:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1025:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Life Absorb:" << std::showpos << int32_t(item ? item->getLifeAbsorb() : it.lifeAbsorb) << "%"<< std::noshowpos; ^ item.cpp:1035:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1037:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Mana Absorb:" << std::showpos << int32_t(item ? item->getManaAbsorb() : it.manaAbsorb) << "%"<< std::noshowpos; ^ item.cpp:1047:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1049:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Life Leech:" << std::showpos << int32_t(item ? item->getLifeLeech() : it.lifeLeech) << "%"<< std::noshowpos; ^ item.cpp:1059:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1061:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Mana Leech:" << std::showpos << int32_t(item ? item->getManaLeech() : it.manaLeech) << "%"<< std::noshowpos; ^ item.cpp:1364:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1366:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Crit Chance:" << std::showpos << int32_t(item ? item->getCriticalHitChance() : it.criticalHitChance) << "%"<< std::noshowpos; ^ item.cpp:1376:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1378:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Dodge Chance:" << std::showpos << int32_t(item ? item->getDodgeChance() : it.dodgeChance) << "%"<< std::noshowpos; ^ item.cpp:1388:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1390:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Life Absorb:" << std::showpos << int32_t(item ? item->getLifeAbsorb() : it.lifeAbsorb) << "%"<< std::noshowpos; ^ item.cpp:1400:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1402:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Mana Absorb:" << std::showpos << int32_t(item ? item->getManaAbsorb() : it.manaAbsorb) << "%"<< std::noshowpos; ^ item.cpp:1412:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1414:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Life Leech:" << std::showpos << int32_t(item ? item->getLifeLeech() : it.lifeLeech) << "%"<< std::noshowpos; ^ item.cpp:1424:4: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation] else ^~~~ item.cpp:1426:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ s << "Mana Leech:" << std::showpos << int32_t(item ? item->getManaLeech() : it.manaLeech) << "%"<< std::noshowpos; ^ cc1plus: all warnings being treated as errors Makefile:40: recipe for target 'obj/item.o' failed make: *** [obj/item.o] Error 1 Editado Novembro 15, 2020 5 anos por Rogeriok (veja o histórico de edições) Assinatura retirada pela direção!
Postado Maio 4, 2022 3 anos 12 horas atrás, Rafaelizzidoro disse: Olá Pessoal, fiz todo o processo sozinho e na primeira vez, deu erro e não consegui compilar. Depois que fui seguindo o vídeo e vi que no vídeo tem algumas alterações pequenas que fazem a diferença. Seguem exatamente o que está no vídeo, até a formatação.... Porém...... Estou com o mesmo problema do @leozincorsair e do @Faelzdanil. Alguém descobriu o problema? Valeu. www.megaot.com esse sistema nao esta pegando no 0.4 , talvez so otx pra cima .. tentei aqui e nao funciona os atributos e abandonaram o tópico .
Postado Maio 4, 2022 3 anos 7 horas atrás, leozincorsair disse: esse sistema nao esta pegando no 0.4 , talvez so otx pra cima .. tentei aqui e nao funciona os atributos e abandonaram o tópico . Bah que pena, seria muito massa se funcionasse kkk
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.