PtokaX forum

Development Section => Your Developing Problems => Topic started by: Markitos on 24 July, 2006, 17:06:53

Title: Saving user objects with operator status
Post by: Markitos on 24 July, 2006, 17:06:53
http://lua.uknnet.com/thread.php?postid=9500#post9500
Title: Re: Saving user objects with operator status
Post by: jiten on 24 July, 2006, 17:20:43
Give this a try:

Main = function()
local tTable = frmHub:GetOnlineOperators()
for i, v in ipairs(tTable) do
table.insert(t, v)
SaveToFile(file, t, "t")
end
end


As you can see in your code, you're using a table value as an index.
That's the reason why you won't get any output.

By the way, you can use table.insert in both arrays and tables.
Title: Re: Saving user objects with operator status
Post by: Markitos on 24 July, 2006, 18:27:16
Quote from: jiten on 24 July, 2006, 17:20:43
Main = function()
local tTable = frmHub:GetOnlineOperators()
for i, v in ipairs(tTable) do
table.insert(t, v)
SaveToFile(file, t, "t")
end
end

Thanks that did the djob...