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

RevScripts [TFS 1.3] updated Slot System

jel

Member
Joined
Mar 22, 2014
Messages
302
Reaction score
12
any solution for this error?

function:
Code:
function Item:getStats()
    local slots = self:getCustomAttribute(CUSTOM_ATTRIBUTE_STATS) or ""
    slots = slots:split(SLOT_SEPARATOR)

    return slots
end
line 95:
slots = slots:split(SLOT_SEPARATOR)

[TFS 1.3] updated Slot System


Lua:
scriptInterface: [Scripts Interface]
scriptId: [/home/canary-main/data-otservbr-global/scripts/testes/slot_system.lua:callback]
timerEvent: []
 callbackId:[]
function: []
error [...main/data-otservbr-global/scripts/testes/slot_system.lua:95: attempt to index local 'slots' (a number value)
stack traceback:
        [C]: in function '__index'
        ...main/data-otservbr-global/scripts/testes/slot_system.lua:95: in function 'getStats'
        ...main/data-otservbr-global/scripts/testes/slot_system.lua:229: in function 'getEquipmentStats'
        ...main/data-otservbr-global/scripts/testes/slot_system.lua:296: in function 'updateStats'
        ...main/data-otservbr-global/scripts/testes/slot_system.lua:380: in function <...main/data-otservbr-global/scripts/testes/slot_system.lua:379>]
 
Back
Top