YeetMeister Posted September 11, 2019 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
Administrators Enyby Posted September 11, 2019 Administrators 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)
YeetMeister Posted September 11, 2019 Author 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
Administrators Enyby Posted September 11, 2019 Administrators Posted September 11, 2019 Watch example above. Do not forget comma. Also read table tutorial. http://lua-users.org/wiki/TablesTutorial
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
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.