Postado Maio 22, 2020 4 anos Spoiler ../creatureevent.cpp: In member function `uint32_t CreatureEvents::executeMoveItems(Creature*, Item*, const Position&, const Position&)': ../creatureevent.cpp:198: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp:200: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp: In member function `virtual bool CreatureEvent::configureEvent(xmlNode*)': ../creatureevent.cpp:347: error: expected primary-expression before "else" ../creatureevent.cpp:347: error: expected `;' before "else" ../creatureevent.cpp:354: error: expected primary-expression before "else" ../creatureevent.cpp:354: error: expected `;' before "else" ../creatureevent.cpp:356: error: expected primary-expression before "else" ../creatureevent.cpp:356: error: expected `;' before "else" make.exe: *** [obj//creatureevent.o] Error 1 quando eu clico pra ver onde está os erros mostra que estão nesses ";" antes dos else que não tem sentido nenhum kkkkkk Spoiler else if(tmpStr == "moveitem") m_type = CREATURE_EVENT_MOVEITEM; else if(tmpStr == "moveitem2") m_type = CREATURE_EVENT_MOVEITEM2; m_type = CREATURE_EVENT_MOVEITEM; else if(tmpStr == "extendedopcode") m_type = CREATURE_EVENT_EXTENDED_OPCODE; else { std::cout << "[Error - CreatureEvent::configureEvent] No valid type for creature event." << str << std::endl; return false; }
Postado Maio 22, 2020 4 anos Autor Diretor 7 minutos atrás, Spooky Ghost disse: Mostrar conteúdo oculto ../creatureevent.cpp: In member function `uint32_t CreatureEvents::executeMoveItems(Creature*, Item*, const Position&, const Position&)': ../creatureevent.cpp:198: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp:200: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp: In member function `virtual bool CreatureEvent::configureEvent(xmlNode*)': ../creatureevent.cpp:347: error: expected primary-expression before "else" ../creatureevent.cpp:347: error: expected `;' before "else" ../creatureevent.cpp:354: error: expected primary-expression before "else" ../creatureevent.cpp:354: error: expected `;' before "else" ../creatureevent.cpp:356: error: expected primary-expression before "else" ../creatureevent.cpp:356: error: expected `;' before "else" make.exe: *** [obj//creatureevent.o] Error 1 quando eu clico pra ver onde está os erros mostra que estão nesses ";" antes dos else que não tem sentido nenhum kkkkkk Ocultar conteúdo else if(tmpStr == "moveitem") m_type = CREATURE_EVENT_MOVEITEM; else if(tmpStr == "moveitem2") m_type = CREATURE_EVENT_MOVEITEM2; m_type = CREATURE_EVENT_MOVEITEM; else if(tmpStr == "extendedopcode") m_type = CREATURE_EVENT_EXTENDED_OPCODE; else { std::cout << "[Error - CreatureEvent::configureEvent] No valid type for creature event." << str << std::endl; return false; } else if(tmpStr == "moveitem") m_type = CREATURE_EVENT_MOVEITEM; else if(tmpStr == "moveitem2") m_type = CREATURE_EVENT_MOVEITEM2; else if(tmpStr == "extendedopcode") m_type = CREATURE_EVENT_EXTENDED_OPCODE; else { std::cout << "[Error - CreatureEvent::configureEvent] No valid type for creature event." << str << std::endl; return false; } Editado Maio 22, 2020 4 anos por L3K0T (veja o histórico de edições)
Postado Maio 22, 2020 4 anos Spoiler ../creatureevent.cpp: In member function `uint32_t CreatureEvents::executeMoveItems(Creature*, Item*, const Position&, const Position&)': ../creatureevent.cpp:198: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp:200: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp: In member function `virtual bool CreatureEvent::configureEvent(xmlNode*)': ../creatureevent.cpp:347: error: expected primary-expression before "else" ../creatureevent.cpp:347: error: expected `;' before "else" make.exe: *** [obj//creatureevent.o] Error 1 @L3K0T Um else ainda está persistindo, ele fica nessa parte: Spoiler else if(tmpStr == "moveitem")
Postado Maio 22, 2020 4 anos Autor Diretor 13 minutos atrás, Spooky Ghost disse: Ocultar conteúdo ../creatureevent.cpp: In member function `uint32_t CreatureEvents::executeMoveItems(Creature*, Item*, const Position&, const Position&)': ../creatureevent.cpp:198: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp:200: error: base operand of `->' has non-pointer type `std::pair<const std::string, CreatureEvent*>' ../creatureevent.cpp: In member function `virtual bool CreatureEvent::configureEvent(xmlNode*)': ../creatureevent.cpp:347: error: expected primary-expression before "else" ../creatureevent.cpp:347: error: expected `;' before "else" make.exe: *** [obj//creatureevent.o] Error 1 @L3K0T Um else ainda está persistindo, ele fica nessa parte: Ocultar conteúdo else if(tmpStr == "moveitem") pode manda a source no privado???
Postado Maio 22, 2020 4 anos xD Editado Maio 22, 2020 4 anos por Spooky Ghost (veja o histórico de edições)
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.