Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addCreature(cid, target, sto)
- local dq = getPlayerStorageValue(cid, sto)
- if type(dq) ~= "string" then
- setPlayerStorageValue(cid, sto, tostring(targe))
- else
- setPlayerStorageValue(cid, sto, dq .. ", ".. target)
- end
- return true
- end
- function getCreatures(cid, sto)
- local ret = {}
- local dq = getPlayerStorageValue(cid, sto)
- if type(dq) == "string" then
- local plays = string.explode(dq, ",")
- for _, v in pairs(plays) do
- table.insert(ret, tonumber(v))
- end
- end
- return ret
- end
Advertisement
Add Comment
Please, Sign In to add comment