CrazyNeko Posted September 17, 2021 Posted September 17, 2021 gg.refineNumber(10001, gg.TYPE_DWORD) if gg.getResultsCount(1) then cn() else gg.alert('Failed.') gg.clearResults() os.exit() end end
Lover1500 Posted September 17, 2021 Posted September 17, 2021 14 hours ago, CrazyNeko said: if gg.getResultsCount(1) Wrong usage. It would be like this if gg.getResultsCount()>=1 then Or hi = gg.getResultsCount() if hi>=1 then I use >=1 because the results may be more than 1.You can use >0 too. Read here about gg.getResultsCount https://gameguardian.net/help/classgg.html#a1123e55c5eb365b425ccfe465c52c510
Question
CrazyNeko
gg.refineNumber(10001, gg.TYPE_DWORD)
if gg.getResultsCount(1)
then cn() else
gg.alert('Failed.') gg.clearResults() os.exit()
end
end
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.