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.
Can someone please tell me what to do? Thanks!
I can make the error disapear by deleting the
It cant find the player, I tried to change "cid" to "pid" but then players could not loggout.
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: