Author Topic: [Solved]Question for multiple string names?  (Read 802 times)

Zefk

  • Hero Member
  • *****
  • Posts: 536
  • Just helping Solarus
    • View Profile
    • Zelzec
[Solved]Question for multiple string names?
« on: October 09, 2016, 08:00:03 am »
My text box passes the char to a table.

Code: ( lua) [Select]
local text_box = {
       char={}
}

char = "1"
table.insert(text_box.char,char)

print("Char is:", table.concat(text_box.char))

name = table.concat(text_box.char)

print("His name is:", name)

This works, but how can I pass a different string to more than one person? Would I have to make more tables?

EX:
Code: ( lua) [Select]
local text_box = {
       char= {}
       char2={}
}

I solved this and will post a link to my textbox script later.