isc88
|
  |
| Joined: 30 May 2013 |
| Total Posts: 27545 |
|
|
| 11 Sep 2015 05:28 PM |
How would I do this
I want to be able to have a table where say there's a list of things you can search, and data for each of those
how would I make a search function? (besides lots of if statements)
what siggy |
|
|
| Report Abuse |
|
|
isc88
|
  |
| Joined: 30 May 2013 |
| Total Posts: 27545 |
|
| |
|
|
| 11 Sep 2015 05:31 PM |
| Start by offering 10k for the script, then give us as many stinkin details as you can possible think up. |
|
|
| Report Abuse |
|
|
76km
|
  |
| Joined: 14 Aug 2015 |
| Total Posts: 5455 |
|
|
| 11 Sep 2015 05:31 PM |
| You can search anything in a table. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 05:32 PM |
Use string indeces (or a dictionary as they ccall it) local tab = {["Grocery"] = "nothing"}
http://wiki.roblox.com/index.php?title=Table#Creating_a_dictionary |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 05:33 PM |
You want something that searches through a table?
local PizzaToppings = {"ant", "pickle", "goo", "cat"}
for index = 1, #PizzaToppings do
end
This iterates through the terrible
#TABLE means number of items in (table)
#PizzaToppings will be the number of items in PizzaToppings So that would be 4
So it would iterate from 1, 4 |
|
|
| Report Abuse |
|
|
isc88
|
  |
| Joined: 30 May 2013 |
| Total Posts: 27545 |
|
|
| 11 Sep 2015 05:38 PM |
How would I get a textbox's text, take the string, see if that is in the table and if so return a number?
what siggy |
|
|
| Report Abuse |
|
|