How would I store multiple strings or numbers inside the same line in a table?
local Test = {
Text1 = 23, "hi"}
and then be able to print(Test.Text1[1]). Is there any way to do this? I've searched to no avail.
How would I store multiple strings or numbers inside the same line in a table?
local Test = {
Text1 = 23, "hi"}
and then be able to print(Test.Text1[1]). Is there any way to do this? I've searched to no avail.
It's actually pretty simple! All you have to do is allocate another table to the data piece:
local Table = {
Text1 = {25, "Hi"};
}
As a beginner, it's tough to research tutorials or find informational articles. This is because most keywords required to find this information are technical jargon; try finding out what the topic of code you're working with is called: "Tables", and then using it in your query.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
wtf speedy
Cheers, I thought it would have something like this, but I found nothing before you.