Guiaki
Member
- Joined
- Jan 3, 2011
- Messages
- 137
- Reaction score
- 8
I was looking at an auto loot feature in otland:
http://otland.net/threads/mod-auto-loot.164289/
And I got myself to implement it basically everything, but there is one "bug" that doesn't give me an error or anything but simply won't work, look at this function:
Is it possible to save that array in TFS 1.0? I don't think its working, or need to change something perhaps.
http://otland.net/threads/mod-auto-loot.164289/
And I got myself to implement it basically everything, but there is one "bug" that doesn't give me an error or anything but simply won't work, look at this function:
Code:
function setPlayerStorageTable(cid, storage, tab)
local tabstr = "&"
for i,x in pairs(tab) do
tabstr = tabstr .. i .. "," .. x .. ";"[/INDENT]
end
setPlayerStorageValue(cid, storage, tabstr:sub(1, #tabstr-1))[/INDENT]
end