• 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 Problems with a custom function

Exedion

Active Member
Joined
Jun 11, 2007
Messages
629
Reaction score
30
i try to make this function but dont work and no show error in console, why?

[cpp]
int32_t LuaInterface::luaDoCreatureCancelFollow(lua_State* L)
{
//doCreatureCancelFollow(cid)
ScriptEnviroment* env = getEnv();
if(Creature* creature = env->getCreatureByUID(popNumber(L)))
{
creature->setFollowCreature(NULL);
lua_pushboolean(L, true);
}
else
{
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
lua_pushboolean(L, false);
}

return 1;
}
[/cpp]
 
i need help with something pls i made my ot but i dont know how to open my ports can u please tell me how to do it ? ty :)
 
Back
Top