Jump to content
  • 0

.cfg registry problem


Metin011

Question

local info = {}
local config = gg.getFile()..'.cfg'
local data = loadfile(config)
if data ~= nil then
info = data() data = nil end

Variable = {}
Variable["LoginURL"]= "xxxxxxxxxxx.com"
info =  gg.prompt({os.date[[LOGIN PANEL 
✓ %c

]].. 'Login', 'Password', 'Remember ' },
info, {'text', 'text', 'checkbox'})
if info == nil then
os.exit()
end
if info[3] then
gg.saveVariable(info, config)
else
os.remove(config)
end

Variable["TempLogin"]  = '{"Username":"'..info[1]..'","Password":"'..info[2]..'"}'

ResponseContent = gg.makeRequest(Variable["LoginURL"],nil,Variable["TempLogin"]).content
pcall(load(ResponseContent))

 

When I open the script local file, I can save as exlampe.cfg

But when the online script is on the server exlampe.cfg is not saved in my local files. How can I fix this?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.