• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling a little error

int32_t LuaScriptInterface::luaDoCreatureSetNoMove(lua_State* L)
{
//doCreatureSetNoMove(cid, block)
bool block = popNumber(L) == 1;

ScriptEnviroment* env = getScriptEnv();
if(Creature* creature = env->getCreatureByUID(popNumber(L)))
{
creature->setNoMove(block);
lua_pushnumber(L, LUA_NO_ERROR);
}
else
{
reportErrorFunc(getErrorDesc(LUA_ERROR_CREATURE_NOT_FOUND));
lua_pushnumber(L, LUA_ERROR);
}

return 1;
}

here
 
Post class creature, try to figure out why they cant recognize the constructor? setNoMove. Perhaps it does not exist, is private or have another name.

If you are in the creature class, does it have to refer to itself? I'm just reflecting throught java experience now and not too familiar with c++ yet.
 
If you are using Notepad++, you can click CTRL + F --> Find in Files --> check for follow current doc and search for "movingCreature".
 
Back
Top