Posted 21 February 2013 - 07:45 PM
title: [Lua][Error] printing a table element
I keep geting a error, "program:2: attempt to call table" I am just starting lua, I did search but did not find what I was looking for.
the code is:
local table = {"top", "bottom"}
print(table(2))
all I am trying to do is print "bottom" that will be used in with other things.
I keep geting a error, "program:2: attempt to call table" I am just starting lua, I did search but did not find what I was looking for.
the code is:
local table = {"top", "bottom"}
print(table(2))
all I am trying to do is print "bottom" that will be used in with other things.