Posted 25 April 2012 - 10:59 PM
A piece of code wants to know if there is anything at table 4, row 14, And there is! But I cant call on it..
Closest I can get to that is
Ofc its churning out Data3[5] not "hello"
So how do I churn out "hello"?
if Data4[14] then return Data4[14] end
Thats what I want the program to seeClosest I can get to that is
function checkData(y, x)
local temp = "Data"..y.."["..x.."]"
if temp then
return temp
else
return false
end
end
Data3 = {}
Data3[5] = "hello"
if checkData(3, 5) then
print(checkData(3, 5))
end
Ofc its churning out Data3[5] not "hello"
So how do I churn out "hello"?