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
teleportTo pos have nil value [teleport summons to owner]
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'...