beliar34
Member
- Joined
- Feb 28, 2012
- Messages
- 307
- Solutions
- 7
- Reaction score
- 11
Code:
luascript.cpp: In static member function 'static int32_t LuaScriptInterface::luaGetPlayerSecureMode(lua_State*)':
luascript.cpp:10402:36: error: 'getEnv' was not declared in this scope
ScriptEnviroment* env = getEnv();
^
luascript.cpp:10406:52: error: 'getError' was not declared in this scope
errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
^
luascript.cpp:10406:53: error: 'errorEx' was not declared in this scope
errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
^
luascript.cpp: In static member function 'static int32_t LuaScriptInterface::luaGetPlayerFightMode(lua_State*)':
luascript.cpp:10418:36: error: 'getEnv' was not declared in this scope
ScriptEnviroment* env = getEnv();
^
luascript.cpp:10422:52: error: 'getError' was not declared in this scope
errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
^
luascript.cpp:10422:53: error: 'errorEx' was not declared in this scope
errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
^
Makefile:556: recipe for target 'luascript.o' failed
When trying to compile with : https://otland.net/threads/getplayersecuremode-cid-getplayerfightmode-cid.128276/
and i added to luascripts.cpp also
Code:
lua_register(m_luaState, "PlayerSecureMode", LuaScriptInterface::luaGetPlayerSecureMode);
lua_register(m_luaState, "PlayerFightMode", LuaScriptInterface::luaGetPlayerFightMode);
Code:
static int32_t luaGetPlayerSecureMode(lua_State* L);
static int32_t luaGetPlayerFightMode(lua_State* L);