| |
|
| |
|
| |
|
|
| 29 Jul 2014 09:34 AM |
| (number expected, got string) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Jul 2014 12:15 PM |
table.remove takes a numerical-key. Loop through the table until the value is g.Name, then take the index and use that.
local getKey = function(tbl, value) for key = 1, #tbl do if tbl[key] == value then return key; end end end;
table.remove(currentalive, getKey(currentAlive, g.Name)) |
|
|
| Report Abuse |
|
|