SAGEPAPI Posted September 19, 2020 Posted September 19, 2020 I want to search in between two values in a lua script with a prompt. something like this: M= gg.prompt({i= 'input cash'},{i='Cash here'}) But with 2 values.
MarioRossi93i Posted September 19, 2020 Posted September 19, 2020 local p = gg.prompt( {'Input cash','cash here'}, {nil,nil}, {'number','number'} ) gg.searchNumber( p[1]..'~'..p[2], gg.FLAGS_NEEDED )
SAGEPAPI Posted September 20, 2020 Author Posted September 20, 2020 if A == 4 then local p = gg.prompt({'input exp low value','input exp high value'},{nil,nil},{'number','number'}) gg.searchNumber(p[1]~p[2],gg.TYPE_DOUBLE) end When i type the 2 values in. The only thing it searches is 1.
MarioRossi93i Posted September 20, 2020 Posted September 20, 2020 you have to concatenate variables (p) and string (~) so you have to use double dots (..) to do this. So ur search will be: gg.searchNumber( p[1].."~"..p[2], gg.TYPE_DOUBLE )
Question
SAGEPAPI
I want to search in between two values in a lua script with a prompt. something like this:
But with 2 values.
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.