Jump to content
  • 0

getresultcount


Khaledmohamed

Question

I want some help with this command

Im trying to make a script with searching game address which showing like 1000 result but sometimes show 900 or 800 and it will lead to ban because i have to change 1000 result so i made getresultcount = 0 lead to process kill but how to make it for any numbers other than 0 or like the example i said above less than 1000 value 900 800 700 or set range so the game closes by process kill for safety

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

if you want to force close the game in case the search results is lower than 1000 you can simply use the `<` lower operator 

local count = gg.getResultsCount()

if (count < 1000) then 
 --
end

In case you want to make different verification you can at first separate all your if statement to perform multiple condition check or you can mix all the condition together

if (count <= 800 or count >= 900) then 
  --
end

note, the combination is infinite, you can add many as you want, but it is not recommended

you can check Lua documentation for more info 

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.