qElite
|
  |
| Joined: 31 Dec 2007 |
| Total Posts: 410 |
|
|
| 06 Jul 2014 04:22 PM |
does table.remove really only take a position number argument as it says on the wiki please no |
|
|
| Report Abuse |
|
|
ohno1112
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 833 |
|
|
| 06 Jul 2014 04:24 PM |
| What's so wrong with looping? |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
| |
|
|
| 06 Jul 2014 04:30 PM |
@ohno It should be avoided if necessary. It causes lots of lag if you use too many.
I hate the LGBT. Those laser guided battle tanks are just too damn powerful. |
|
|
| Report Abuse |
|
|
flump
|
  |
| Joined: 30 Jul 2008 |
| Total Posts: 1039 |
|
|
| 06 Jul 2014 04:55 PM |
Loops shouldn't be avoided their useful structures that allows compacting and user-friendliness for yourself and other viewers.
If used incorrectly they can cause problems but usually are an overall improvement
for example
table.remove(Table,1) table.remove(Table,2) table.remove(Table,3) table.remove(Table,4) table.remove(Table,5)
or
for i = 1,5 do table.remove(Table,i) end
Its just better structure |
|
|
| Report Abuse |
|
|