Advertisement
Rochet2

Untitled

Dec 11th, 2013
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. -- All these mean the same thing
  2.  
  3. DATA = {
  4.     votes = {},
  5.     vip = {}
  6. }
  7.  
  8. DATA = {}
  9. DATA.votes = {}
  10. DATA.vip = {}
  11.  
  12. DATA = {}
  13. DATA["account votes"] = {} -- Can use string like this an
  14. DATA["vip"] = {} -- A string name can also be accessed later in the same fashion as above: DATA.vip as well as DATA.["vip"]
  15.  
  16.  
  17. -- Example of having DATA table and saving some votes and vip data to it under one account ID
  18. DATA = {}
  19. -- code
  20.     local accID = player:GetAccountId()
  21.     DATA[accID].vip = {1,2,3,4,5}
  22.     DATA[accID].votes = {1,2,3,4,5}
  23. -- code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement