function onStepIn(cid, item)
if(getPlayerStorageValue(cid, STORAGE) ~= FALSE)then
for _, pid in getCreatureSummons(cid)
doTeleportThing(pid, getCreaturePosition(cid), FALSE)
end
end
end
about the getStorage i guess it returns a number not booleanTry like this:
Code:function onStepIn(cid, item) if(getPlayerStorageValue(cid, STORAGE) [B][COLOR="Blue"]~= FALSE[/COLOR][/B])then for _, pid in [B][COLOR="Red"]ipairs(getCreatureSummons(cid))[/COLOR][/B] doTeleportThing(pid, getCreaturePosition(cid), FALSE) end end end
Thus, I dont know if it will work how it is supposed to.
about the getStorage i guess it returns a number not boolean
for _, pid in ipairs(getCreatureSummons(cid)) do