I made this for a request, I wish it was rarely used. :-)
-- Pto2Yn by bastya_elvtars
-- requested by [DKN]KEBIS at DCDev
-- Configure the profile conversion here.
-- [profilenumber_ptokax]="profilename_ynhub",
Profiles=
{
[0]="Owner",
[1]="OP",
[2]="VIP",
[3]="Registered",
}
-- Do not edit below
function Main()
local tToBeSaved={}
for _,obj in frmHub:GetRegisteredUsers() do
local msg=
[[
]]
msg=msg..obj.sNick.."\n\ "..obj.sPassword.."\n"
local prof=Profiles[obj.iProfile] or "Registered"
msg=msg.." "..prof.."\n "
local m=
[[pot
2005-08-07 17:20:17
YnHub GUI
2005-08-08 17:03:57
2005-08-07 17:20:17
YnHub GUI
2005-08-09 15:31:36
2005-08-07 17:25:23
86557249
0
0
]]
msg=msg..m
table.insert(tToBeSaved,msg)
end
local f=io.open(frmHub:GetPtokaXLocation().."accounts.xml","w+")
f:write([[
]])
--for a,b in pairs(tToBeSaved) do
f:write(table.concat(tToBeSaved),"\n")
--end
f:write([[ ]])
f:close()
end
how to use this converter ? its not working i got some error
[10:34] Syntax E:\0350lua511dbg\0.3.4.0.dbg\scripts\Pto2Yn.lua:36: unfinished long string near `<eof>'
some1 help please.
Posted on: 12 July 2006, 07:09:04
[10:34] Syntax E:\0350lua511dbg\0.3.4.0.dbg\scripts\Pto2Yn.lua:36: unfinished long string near `<eof>'
Quote from: bastya_elvtars on 10 August, 2005, 01:46:22
I made this for a request, I wish it was rarely used. :-)
But the opposite could be handy
Quote from: HappyTheMan on 25 August, 2006, 01:48:07
But the opposite could be handy
I have made the reverse-script as well. :-)