Pass table index instead of table value
Posted: Thu Mar 03, 2016 10:20 pm
Hi, the answer to this might be really simple and maybe im just retarded but..
Im curently making a custom Messagebox , with a text input. The goal is to halv something like
So my options are to either:
But that would have to "pause" the whole game, right? Until the function returns something
The other thing i thought of was
And then the function would set the input to the input from the textbox. However when i pass table.valueone to the function it sends its string value instead of like a refrense to the table.
Hope you understand what i mean. Any help is appriciated
Im curently making a custom Messagebox , with a text input. The goal is to halv something like
Code: Select all
Table = { valueone = "" }
Code: Select all
table.valueone = inputbox:new()
The other thing i thought of was
Code: Select all
inputbox(table.valueone)
Hope you understand what i mean. Any help is appriciated