Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32031

teleportTo pos have nil value [teleport summons to owner]

$
0
0
summonpos have nil value but when you try to say summonpos.x it says 0
i added comments inside the script what are explaining the issue

Lua:
    local summons = getCreatureSummons(cid) -- script spamms errors only when you have a summon

    for i = 1, #summons do
        local sid = numberToVariant(summons[i]) -- w/o this spams 'attempt to index a number value'
        local summonPos = sid:getPosition() -- summons[i]:getPosition() spams 'attempt to index a number value'...
teleportTo pos have nil value [teleport summons to owner]

Viewing all articles
Browse latest Browse all 32031

Trending Articles