• 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
Can you read my whole sentence please?
This snow debug is related to this thread? If not then create a new thread and close this one/mark as solved.
 
That is because you copied a full data-pack from different version to your server and you expect it to work properly without any issues.
Post the full script here in a code not a screenshot.
 

Lua:
local decayId = itemType:getDecayId()
            if decayId ~= -1 then
                description = string.format('%s\nDecays to: %d', description, decayId)
            end
        elseif thing:isCreature() then
            local str = '%s\nHealth: %d / %d'
            if thing:getMaxMana() > 0 then
                str = string.format('%s, Mana: %d / %d', str, thing:getMana(), thing:getMaxMana())
            end
            description = string.format(str, description, thing:getHealth(), thing:getMaxHealth()) .. '.'
        end

        local position = thing:getPosition()
        description = string.format(
            '%s\nPosition: %d, %d, %d',
            description, position.x, position.y, position.z
        )

Any ideas M0ustafa?
 
Back
Top