Jump to content
  • 0

Bug/error in a lua script


_W0LF_

Question

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

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

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.