Jump to content
  • 0

Lua script help


Handyman4u

Question

Posted

I've recently started writing this Lua script for a game, but I'm pretty new to Lua scripting. So basically this search command isn't working for whatever reason. Could it have something to do with decimals because when I've tried normal numbers it works? 

if manu==3 then
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('0.08302085847',gg.TYPE_FLOAT)
gg.getResults(100)
end

But when I just search for the value 0.08302085847 in the normal search it works please help I don't know what I'm doing wrong :(

 

1 answer to this question

Recommended Posts

Posted
On 12/9/2020 at 1:03 PM, Handyman4u said:

gg.searchNumber('0.08302085847',gg.TYPE_FLOAT)

gg.searchNumber(0.08302085847,gg.TYPE_FLOAT)

 

You are searching a string, it s a number, so no quotes

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.