marken Posted March 30, 2019 Posted March 30, 2019 gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD) gg.processResume() gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll('523533591', gg.TYPE_DWORD) how do i repeat this process to an infinite like gg.repeatAll 100x like that im a noob
Administrators Enyby Posted March 30, 2019 Administrators Posted March 30, 2019 Use lua loops. Read about it in lua books, reference manual or google about it.
RONO_PLAYS Posted March 30, 2019 Posted March 30, 2019 1 hour ago, marken said: gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD) gg.processResume() gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll('523533591', gg.TYPE_DWORD) how do i repeat this process to an infinite like gg.repeatAll 100x like that im a noob Very basic Infinite repeat (will run till interrupt) ::START:: function infinite() -- insert your code here e.g gg.searchNumber('523533590',gg.TYPE_DWORD) end infinite() -- call your function goto START --repeats till interrupt
bukandewa Posted March 30, 2019 Posted March 30, 2019 2 hours ago, marken said: gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD) gg.processResume() gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll('523533591', gg.TYPE_DWORD) how do i repeat this process to an infinite like gg.repeatAll 100x like that im a noob You can use 'while' or 'repeat until'
CmP Posted March 30, 2019 Posted March 30, 2019 3 hours ago, marken said: like gg.repeatAll 100x If you need to repeat the code for a known amount of times, use numerical "for" loop. Example: -- repeat 25 times for i = 1, 25 do -- the code to repeat here end References: https://www.lua.org/manual/5.3/manual.html#3.3.5 http://lua-users.org/wiki/ForTutorial
marken Posted March 30, 2019 Author Posted March 30, 2019 1 hour ago, CmP said: If you need to repeat the code for a known amount of times, use numerical "for" loop. Example: -- repeat 25 times for i = 1, 25 do -- the code to repeat here end References: https://www.lua.org/manual/5.3/manual.html#3.3.5 http://lua-users.org/wiki/ForTutorial tnx for the references
Question
marken
gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD)
gg.processResume()
gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll('523533591', gg.TYPE_DWORD)
how do i repeat this process to an infinite
like gg.repeatAll 100x like that im a noob
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.