Ir para conteúdo

Featured Replies

Postado

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 por Rogeriok (veja o histórico de edições)

Assinatura retirada pela direção!

  • 4 weeks later...
  • Respostas 90
  • Visualizações 14.8k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @Ackerzin melhor forma de você aplicar em qualquer source é pegar uma função existe na sua source e usar o DiffCheker para comparar os códigos e deixar o do tópico com as mesmas funções e chamadas da

  • Rapaziada, acabei de falar com o @Mathias Kenfi e ele vai ver todos erros, e fazer uma versão 2.0 com para adicionar uma porcentagem no dano, sucesso. Observação, ele falou todos que participaram no t

  • @Mathias Kenfi Achei um "bug" Se você estiver equipado um item com manaAbsorb e usar alguma magia de treinar ml "power down, chakra down " que contenha if getPlayerMana(cid) > 1 then    

Posted Images

  • 1 year later...
  • 3 months later...
Postado
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 .

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo