YeetMeister Posted September 11, 2019 Share Posted September 11, 2019 Hello, I've got some problem with calling stuff in a table Table = { ["Name"] = "FoV" ["Search"] = "360" } How can I call these correctly without errors Link to comment Share on other sites More sharing options...
Administrators Enyby Posted September 11, 2019 Administrators Share Posted September 11, 2019 What you mean by "calling"? You can use values like Table.Name or Table.Search (for value "FoV" or "360"). [added 1 minute later] https://www.lua.org/cgi-bin/demo Table = { ["Name"] = "FoV", ["Search"] = "360" } print(Table.Name, Table.Search) Link to comment Share on other sites More sharing options...
YeetMeister Posted September 11, 2019 Author Share Posted September 11, 2019 3 minutes ago, Enyby said: What you mean by "calling"? You can use values like Table.Name or Table.Search (for value "FoV" or "360"). Hmmm, Thanks but I've seen scripts that uses this technique and I wasn't sure. But thanks Do I have to do it like this? Table = { Name = "FoV" Search = "360" } Or Table = { Table.Name and so on } Nvm didn't see the attachment Link to comment Share on other sites More sharing options...
Administrators Enyby Posted September 11, 2019 Administrators Share Posted September 11, 2019 Watch example above. Do not forget comma. Also read table tutorial. http://lua-users.org/wiki/TablesTutorial Link to comment Share on other sites More sharing options...
Question
YeetMeister
Hello, I've got some problem with calling stuff in a table
Table = {
["Name"] = "FoV"
["Search"] = "360"
}
How can I call these correctly without errors
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.