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

Error in player.lua

Solution
Remove this one from your compat.lua
Lua:
function isInArray(array, value) return table.contains(array, value) end
and add this one
Lua:
table.contains = function(array, value)
    for _, targetColumn in pairs(array) do
        if targetColumn == value then
            return true
        end
    end
    return false
end

isInArray = table.contains
TFS version? Post your script here.
Please read Support board rules and post as much details as you can so we can help you.
Edit : Sorry @Kaspar was posting same moment didn't notice your reply.
 
So you didn't read both replies above which are telling you to post your TFS version?
 
In your data\lib\compat\compat.lua add this
Lua:
function isInArray(array, value) return table.contains(array, value) end
 
Where is the getMaxMana in the script above? Post your full script.
 
Add this to your compat.lua
Lua:
getPlayerMaxMana = getCreatureMaxMana
 
Remove that script and try without it see if you still getting debugs, What is this script supposed to do?
 
Remove this one from your compat.lua
Lua:
function isInArray(array, value) return table.contains(array, value) end
and add this one
Lua:
table.contains = function(array, value)
    for _, targetColumn in pairs(array) do
        if targetColumn == value then
            return true
        end
    end
    return false
end

isInArray = table.contains
 
Solution
Still shows same error? even after doing change above?
 
What is this script supposed to do? Post the whole script here (No screenshot)
and read this
 
Back
Top