Jump to content
  • 0

ERROR


THETWINSOFFICIAL

Question

gg.setRanges(gg.REGION_OTHER)

gg.searchNumber(Get_user_input[1], gg.TYPE_BYTE)

count = gg.getResultsCount()

Refiner = gg.getResults(1)

gg.refineNumber(Refiner[1].value, gg.TYPE_BYTE)

count = gg.getResultsCount()

val = gg.getResults(count)g

g.addListItems(val)

anyone can help ? I want to gg.alert when I get this error

Screenshot_2022-05-08-12-20-52-880_com.android.chrome.jpg

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

16 hours ago, MAARS said:
local function checkResultCount()
  local count = gg.getResultsCount()
  if (count > 0) then 
    gg.alert("Found `" .. count .. "` result(s)")
    return count
  end 
  gg.alert("No result(s) found")
  return 0
end 

gg.searchNumber("10", gg.TYPE_DWORD)
checkResultCount()

 

Okay thanks 

Link to comment
Share on other sites

local function fmd()
gg.setRanges(gg.REGION_OTHER)

gg.searchNumber(Get_user_input[1], gg.TYPE_BYTE)

count = gg.getResultsCount()

Refiner = gg.getResults(1)

gg.refineNumber(Refiner[1].value, gg.TYPE_BYTE)

count = gg.getResultsCount()

val = gg.getResults(count)
gg.addListItems(val)
end
local a,b=pcall(fmd)
if a==false then gg.alert(b) end

 

Link to comment
Share on other sites

2 hours ago, Rs92ks said:
local function fmd()
gg.setRanges(gg.REGION_OTHER)

gg.searchNumber(Get_user_input[1], gg.TYPE_BYTE)

count = gg.getResultsCount()

Refiner = gg.getResults(1)

gg.refineNumber(Refiner[1].value, gg.TYPE_BYTE)

count = gg.getResultsCount()

val = gg.getResults(count)
gg.addListItems(val)
end
local a,b=pcall(fmd)
if a==false then gg.alert(b) end

 

Oke thanks

Link to comment
Share on other sites

2 hours ago, Rs92ks said:
local function fmd()
gg.setRanges(gg.REGION_OTHER)

gg.searchNumber(Get_user_input[1], gg.TYPE_BYTE)

count = gg.getResultsCount()

Refiner = gg.getResults(1)

gg.refineNumber(Refiner[1].value, gg.TYPE_BYTE)

count = gg.getResultsCount()

val = gg.getResults(count)
gg.addListItems(val)
end
local a,b=pcall(fmd)
if a==false then gg.alert(b) end

 

how to add gg.alert when not getting value ? or gg.alert when there is no result value ?

Link to comment
Share on other sites

local function checkResultCount()
  local count = gg.getResultsCount()
  if (count > 0) then 
    gg.alert("Found `" .. count .. "` result(s)")
    return count
  end 
  gg.alert("No result(s) found")
  return 0
end 

gg.searchNumber("10", gg.TYPE_DWORD)
checkResultCount()

 

Link to comment
Share on other sites

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.