Posted 14 September 2014 - 12:30 PM
hello there,
First of all, I am still using computercraft 1.33, wich is included in the tekkit classic modpack(i never moved on xD, precious, precious worlds). I apologize.
I am pretty new at Lua coding, and i can't figure this out, so i hope i'm at the right place for this.
I am trying to write a function that adds a string at the end of a table for a sort of login system i've been writing.
To write this i started learning how tables exactly work, and i think i have a mild understanding of them now, however when i tried to use the function table.insert() i get the error "attempt to call nil", wich is supposed to mean the function doesn't exist, but since this is supposed to be an ingrained function of lua i don't understand how that would work.
Does anyone know how I can solve this, or at the very least work around this?
Thanks in advance,
CopyYou
First of all, I am still using computercraft 1.33, wich is included in the tekkit classic modpack(i never moved on xD, precious, precious worlds). I apologize.
I am pretty new at Lua coding, and i can't figure this out, so i hope i'm at the right place for this.
I am trying to write a function that adds a string at the end of a table for a sort of login system i've been writing.
To write this i started learning how tables exactly work, and i think i have a mild understanding of them now, however when i tried to use the function table.insert() i get the error "attempt to call nil", wich is supposed to mean the function doesn't exist, but since this is supposed to be an ingrained function of lua i don't understand how that would work.
local Table = {"One"}
table.insert(Table, "Three")
Does anyone know how I can solve this, or at the very least work around this?
Thanks in advance,
CopyYou