• 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!

Lua Error in console (on logout)

ohman

Member
Joined
Oct 24, 2008
Messages
289
Reaction score
5
Location
Sweden
I have a event called Battle event on my server. The event works fine but I got this error msg when a player logout or login.

Code:
[18:10:42.765] [Error - CreatureScript Interface]
[18:10:42.765] domodlib('teamFunctions')

[18:10:42.765] function onLogout(cid)
[18:10:42.765] clearTeamEventStorages(cid)
[18:10:42.765] if thereIsAWinner() then
[18:10:42.765] endTeamEvent("KO")
[18:10:42.765] end
[18:10:42.765] return true
[18:10:42.765] end

[18:10:42.765] :onLogout
[18:10:42.766] Description:
[18:10:42.766] (luaDoRemoveCondition) Creature not found
[18:10:42.831] XXX has logged out.
[18:10:44.298] XXX has logged in.

[18:10:44.299] [Error - CreatureScript Interface]
[18:10:44.300] domodlib('teamFunctions')

[18:10:44.300] function onLogin(cid)
[18:10:44.300] clearTeamEventStorages(cid)
[18:10:44.300] recieveLateReward(cid)

[18:10:44.300] registerCreatureEvent(cid, "teamEventStats")
[18:10:44.300] registerCreatureEvent(cid, "teambattleLogout")
[18:10:44.300] registerCreatureEvent(cid, "teambattleCombat")
[18:10:44.300] return true
[18:10:44.300] end
[18:10:44.300] :onLogin
[18:10:44.300] Description:
[18:10:44.300] (luaDoRemoveCondition) Creature not found

Can someone please tell me what to do? Thanks!


I can make the error disapear by deleting the
[18:10:42.765] clearTeamEventStorages(cid)
[18:10:44.300] clearTeamEventStorages(cid)
[18:10:44.300] recieveLateReward(cid)

It cant find the player, I tried to change "cid" to "pid" but then players could not loggout.
 
Last edited:
Back
Top