Advertisement
Lupus590

[CC] [Psudo] label to id translation

Nov 19th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. -- create two tables, one for label to id and another for the reverse
  2. -- the label to id table will have labels as the keys and the id as the values
  3. -- hopefully you can figure out the id to label table
  4.  
  5. -- using label to id table
  6. -- id = t[label]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement