Jump to content
  • 0

How to make a working prompt list?


SalahTobasi

Question

Hey 

I could use some help in the Prompt list as I have no idea about linking it to a exact value so it can be changed as the amount I select. 

Same as the slider, an example would be useful.. Thanks in advance ♥ 

Screenshot_20190623-011608.jpg

Screenshot_20190622-090122.jpg

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

1 hour ago, Enyby said:

Read api help. There was examples.

I did and saw the examples, still couldn't figured it out to link it to the Prompt list such as Search a value and edit it. That's where im stuck 

Link to comment
Share on other sites

21 hours ago, Enyby said:

Use type "number".

Ik that, u don't get it.. 

I mean I want to search for a certian value and use the prompt list now how can I link the prompt list to the value I want to search so the results change.. 

e.g

gg.prompt(

    {'Set the amount u want. '},

    {[3]=0},

    {[3]='number'})

Now how can I search for a value and  change the value by the amount selected from the prompt list, that is what I meant by linking it 

If there is an example that would be awesome.. 

Link to comment
Share on other sites

  • Administrators

Get the value into a variable. Use this variable where necessary - in the search string, using string concatenation, or as a parameter when getting the number of results. Or as a value to change.
Learn programming and Lua. These are basic things.

See how other scripts are made. The same search string script.

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.