_W0LF_ Posted August 9, 2018 Share Posted August 9, 2018 So, I made this script and for some reason GG doesn't add the value from prompt to the group search. Here is the script : ::blocksidsearch:: blockid = gg.prompt({'Enter Block/Entrance ID:'},{[1]=''})gg.searchNumber('65536;blockid[1]', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)gg.searchNumber('65536', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)gg.getResults(5800)gg.editAll('0', gg.TYPE_DWORD) As for me its really hard to explain the error/bug because its really weird xD @Enyby Link to comment Share on other sites More sharing options...
Administrators Enyby Posted August 9, 2018 Administrators Share Posted August 9, 2018 Learn about string concatenation in Lua. Link to comment Share on other sites More sharing options...
_W0LF_ Posted August 9, 2018 Author Share Posted August 9, 2018 Ok I guess I didnt explain the problem enough. If I search something using prompt, then its automatically put into ' ' in the gg.searchNumber. But if I need to make a group search, it just ignores what I add to the group search except the original number. Also, is there any way to enter code to prompt so it will show up in the prompt already when the script starts, but not be selected so it wont get cleared automatically if you type any number/letter in? @Enyby Link to comment Share on other sites More sharing options...
Administrators Enyby Posted August 9, 2018 Administrators Share Posted August 9, 2018 1 hour ago, Enyby said: Learn about string concatenation in Lua. You did not even try. Link to comment Share on other sites More sharing options...
Question
_W0LF_
So, I made this script and for some reason GG doesn't add the value from prompt to the group search.
Here is the script :
::blocksidsearch::
blockid = gg.prompt({'Enter Block/Entrance ID:'},{[1]=''})
gg.searchNumber('65536;blockid[1]', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('65536', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(5800)
gg.editAll('0', gg.TYPE_DWORD)
As for me its really hard to explain the error/bug because its really weird xD
@Enyby
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.