of     1   

Madified
#184957000Tuesday, March 08, 2016 12:43 AM GMT

I can do Print(#mytable, player) but not something like nig = (#mytable, player)
UnsourcedAnon
#184957419Tuesday, March 08, 2016 12:49 AM GMT

"nig" is merely a regular variable capable of storing a single value. If you desire to store multiple differing values within a single group, a data structure is often necessary. Consider this expression: nig = {#mytable, player}; The first numerical element of nig, 1, is the size of "mytable" The second element, 2, is the actual "player" object. They can both be conveniently accessed as nig[1], nig[2], respectively.
Hedr0n
#184957472Tuesday, March 08, 2016 12:50 AM GMT

"nig" Fe2O3 (s) + 2 Al (s) → Al2O3 (s) + 2 Fe (s)
Madified
#184957701Tuesday, March 08, 2016 12:53 AM GMT

Thanks, both of you guys helped. I got it working now
Madified
#184958402Tuesday, March 08, 2016 1:03 AM GMT

Okay more help is needed, these are defined already and when I do this it isnt removing the player from the table but the script keeps running fine local plyr = {#mytable, player}; table.remove(plyr)
Madified
#184958994Tuesday, March 08, 2016 1:12 AM GMT

plz
UnsourcedAnon
#184960351Tuesday, March 08, 2016 1:31 AM GMT

"Okay more help is needed, these are defined already and when I do this it isnt removing the player from the table but the script keeps running fine local plyr = {#mytable, player}; table.remove(plyr)" The "remove" table function does not remove any particular element per-se. Rather, it removes the element at a particular position. This is actually quite useful, given the example below: Array = {1,2,3,4,5,5}; table.remove(Array,#Array); The above example would remove the duplicate 5 from the table, given that it within the last position of the table, which is equivalent to the table size in this particular scenario. The first "argument" is the actual table, which would be "Array" in the above example. The second "argument" is merely the position of which you would like to remove any present element.

    of     1