fixylol
|
  |
| Joined: 14 Dec 2012 |
| Total Posts: 7412 |
|
|
| 06 Feb 2016 10:36 AM |
how do i make a script check if a value matches a value on an array?
i dont want to use a for loop since its meant to delete things on that array in a pbs (where there might be lots of people playing)
Number of times opinion has changed: A lot. |
|
|
| Report Abuse |
|
Csharp0
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 261 |
|
|
| 06 Feb 2016 10:39 AM |
You really have to use a for loop to check the value, otherwise you're going to have some very inflexible and ugly code.
--
for i = 1, #table do print(table[i]) end
--
That will print the value of everything inside the given table. |
|
|
| Report Abuse |
|