1
user = {
        {uid = "IFOZOTj1JXubBSg26nkhW9yHlwU=", coins = 800, dmod = 0, nmod = 0},
        {uid = "nlncgruCSwId39q2TRSjCnEtgQA=", coins = 200, dmod = 1434246406, nmod = 0}
}

This is my current table structure.

Now I want to add a new line the keys are static:

uid, coins, dmod, nmod 

and the values are variables

_uid, _coins, _dmod, _nmod

I checked this but can't get it to work.

Yu Hao
  • 119,891
  • 44
  • 235
  • 294
snorp
  • 47
  • 4

1 Answers1

2

Try

user[#user+1] = { uid=_uid, coins=_coins, dmod=_dmod, nmod=_nmod }
Yu Hao
  • 119,891
  • 44
  • 235
  • 294
lhf
  • 70,581
  • 9
  • 108
  • 149
  • Perfect , thank you very much . I've tried a ton of "solutions," but that's the only functioning. – snorp Jun 24 '15 at 10:43