Rs92ks Posted October 18, 2019 Share Posted October 18, 2019 My code not works. How to save text search and edit it? function wk() if wkl==0 then if wkrd==0 then gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber(";PlayerRunner", gg.TYPE_WORD, false, gg.SIGN_EQUAL, 0, -1) r1=gg.getResults(88888, nil, nil, nil, nil, nil, nil, nil, nil) r1=";PlayerRunnez" gg.clearResults() gg.setRanges(32) gg.searchNumber(";PlayerDeath", gg.TYPE_WORD, false, gg.SIGN_EQUAL, 0, -1) r2=gg.getResults(88888, nil, nil, nil, nil, nil, nil, nil, nil) r2=";PlayerDeatz" wkl=1 wkrd=1 else r1=";PlayerRunnez" r2=";PlayerDeatz" end else r1=";PlayerRunner" r2=";PlayerDeath" wkl=0 end end Link to comment Share on other sites More sharing options...
Administrators Enyby Posted October 18, 2019 Administrators Share Posted October 18, 2019 Read help and examples for editAll. Link to comment Share on other sites More sharing options...
Rs92ks Posted October 18, 2019 Author Share Posted October 18, 2019 1 minute ago, Enyby said: Read help and examples for editAll. How to avoid new text search? Link to comment Share on other sites More sharing options...
Administrators Enyby Posted October 18, 2019 Administrators Share Posted October 18, 2019 Do not do text search and you avoid it. Link to comment Share on other sites More sharing options...
Rs92ks Posted October 18, 2019 Author Share Posted October 18, 2019 Solved xsrsx=gg.setRanges xsrx=gg.searchNumber xsvx=gg.setValues wkl=0 wkrd=0 --menu --func function wk() if wkl==0 then if wkrd==0 then gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber(";PlayerRunner", gg.TYPE_WORD, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber('110;101;114::5',2) gg.searchNumber('114',2) r1=gg.getResults(999) for a,b in ipairs(r1) do b.value=122 end gg.setValues(r1) gg.clearResults() xsrsx(32) gg.searchNumber(";PlayerDeath", gg.TYPE_WORD, false, gg.SIGN_EQUAL, 0, -1) xsrx('116;104::3',2) xsrx('104',2) r2=xgrx(999) for a,b in ipairs(r2) do b.value=122 end xsvx(r2) wkl=1 wkrd=1 else for a,b in ipairs(r1) do b.value=122 end xsvx(r1) for a,b in ipairs(r2) do b.value=122 end xsvx(r2) wkl=1 end else for a,b in ipairs(r1) do b.value=114 end xsvx(r1) for a,b in ipairs(r2) do b.value=104 end xsvx(r2) wkl=0 end end Link to comment Share on other sites More sharing options...
Question
Rs92ks
My code not works. How to save text search and edit it?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.