Jump to content
  • 0

Can't pass values via _G['kit']


Sappurit

Question

I have 2 scripts (2 processes).

gg.clearResults()
gg.searchNumber("819;1803;113296;113307:20", gg.TYPE_DWORD)

local r = gg.getResults(3, nil, nil, nil, 113307, 113307)
_G['kit'] = r

 

local configFile = gg.getFile()..'.cfg'
local data = loadfile(configFile)
if data then data = data() else data = 3 end

data = gg.prompt({'Enter the kits number'}, {data+1}, {'number'})
data = data[1]

if data then
     gg.saveVariable(data, configFile)
     local r = _G['kit']
     for i = 1,3 do
         r[i].value = data
     end
     gg.setValues(r)
end

 

Does _G['kit'] store in memory ?  

 

Link to comment
Share on other sites

1 answer 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.