r = gg.prompt({'LEVEL [1;5]'},{1},{'number'})
p = {'10','20','30','40','50'}
--bad list--
if r[1] == '1' then rp = p[1] end
if r[1] == '2' then rp = p[2] end
if r[1] == '3' then rp = p[3] end
if r[1] == '4' then rp = p[4] end
if r[1] == '5' then rp = p[5] end
--How to call rp in group search without making bad list..??--
--Because i have 100 items in table p{} --
-- for p[x] , how to set x= r[1] ?? --
-- i tried this --
--gg.searchNumber(r[1]..';100;'..p[r[1]]..';1000:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)--
--also tried x = r[1] then call p[x] but didn't work--
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.
Question
Kimiice7
Please help me how to make group search like this
r = gg.prompt({'LEVEL [1;5]'},{1},{'number'})
p = {'10','20','30','40','50'}
--bad list--
if r[1] == '1' then rp = p[1] end
if r[1] == '2' then rp = p[2] end
if r[1] == '3' then rp = p[3] end
if r[1] == '4' then rp = p[4] end
if r[1] == '5' then rp = p[5] end
gg.searchNumber(r[1]..';100;'..rp..';1000:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
--How to call rp in group search without making bad list..??--
--Because i have 100 items in table p{} --
-- for p[x] , how to set x= r[1] ?? --
-- i tried this --
--gg.searchNumber(r[1]..';100;'..p[r[1]]..';1000:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)--
--also tried x = r[1] then call p[x] but didn't work--
--Thanks for your help guys--
help variable gg.prompt.lua
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.