Posted 21 November 2017 - 07:14 AM
So i have this code:
local Table = {}
table.insert(Table,1)
table.insert(Table,2)
table.insert(Table,3)
function tick()
local index = Table[0]
print(index)
end
tick()
This code outputs nothing. I specifically need to get whatever the last item put in the array is. I'm essentially trying to create a First in Last Out stack but I'm stuck here. Thanks.
-BatStick
local Table = {}
table.insert(Table,1)
table.insert(Table,2)
table.insert(Table,3)
function tick()
local index = Table[0]
print(index)
end
tick()
This code outputs nothing. I specifically need to get whatever the last item put in the array is. I'm essentially trying to create a First in Last Out stack but I'm stuck here. Thanks.
-BatStick