SAGEPAPI Posted September 19, 2020 Share 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. Link to comment Share on other sites More sharing options...
MarioRossi93i Posted September 19, 2020 Share 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 ) Link to comment Share on other sites More sharing options...
SAGEPAPI Posted September 20, 2020 Author Share 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. Link to comment Share on other sites More sharing options...
MarioRossi93i Posted September 20, 2020 Share 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 ) Link to comment Share on other sites More sharing options...
Question
SAGEPAPI
I want to search in between two values in a lua script with a prompt. something like this:
But with 2 values.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.