Postado Julho 28, 2021 3 anos Autor @Sun erro Spoiler In file included from ../player.h:30, from ../luascript.cpp:26: ../outfit.h: In member function 'uint16_t Outfits::getOutfitLevel()': ../outfit.h:86: error: expected primary-expression before '.' token ../luascript.cpp: At global scope: ../luascript.cpp:5694: error: 'LuaInterface' has not been declared ../luascript.cpp: In function 'int32_t luaDoPlayerAddNewOutfit(lua_State*)': ../luascript.cpp:5697: error: 'popNumber' was not declared in this scope ../luascript.cpp:5698: error: 'getEnv' was not declared in this scope ../luascript.cpp:5703: error: 'getError' was not declared in this scope ../luascript.cpp:5703: error: 'error' was not declared in this scope make.exe: *** [obj//luascript.o] Error 1 Execução terminada eu mudei pra LuaScriptInterface
Postado Julho 28, 2021 3 anos Autor @Sun estou utilizando uma base do nto shinobi de naruto. Mudei de LuaInterface para LuaScriptInterface reduziu o erro! agora aparece assim In file included from ../player.h:30, from ../luascript.cpp:26: ../outfit.h: In member function 'uint16_t Outfits::getOutfitLevel()': ../outfit.h:86: error: expected primary-expression before '.' token make.exe: *** [obj//luascript.o] Error 1 Execução terminada Não tenho certeza, mais parece ser aqui if (Outfits::getInstance()->getOutfit(lookType, outfit) && player->getLevel() >= Outfits::getInstance()->getOutfitLevel())
Postado Julho 28, 2021 3 anos altera isso if (Outfits::getInstance()->getOutfit(lookType, outfit) && player->getLevel() >= Outfits::getInstance()->getOutfitLevel()) { lua_pushboolean(L, player->addOutfit(outfit.outfitId, addon)); return 1; } por isso: Outfit outfit; if (Outfits::getInstance()->getOutfit(lookType, outfit) && player->getLevel() >= outfit.level) { lua_pushboolean(L, player->addOutfit(outfit.outfitId, addon)); return 1; } sugiro que troque para uma src mais atual, como você tem projeto de nto, dá pra usar a base 1.3 do nekiro que é 860. @D i M i T r E s C u
Postado Julho 28, 2021 3 anos Autor @Sun vou trocar de sourcer, mais se quiser te passo a que eu tenho aqui pra vc tentar ver pra mim isso por enquanto. pq adicionei mt coisa nela, vou ter que adicionar tudo de novo.
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.