Jump to content
YeetMeister

Table help I guess

Recommended Posts

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

Share this post


Link to post
Share on other sites

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)

 

scr_1568222632.png

Share this post


Link to post
Share on other sites
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

Edited by YeetMeister

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...