Posted 09 March 2014 - 07:36 PM
Ok so im still learning lua scipting and ive just started to use stuff like
for key, value in pairs() do
so to the problem, the server i play on just recently added OpenPeripherals, and i noticed the sensors and thought they are toltally cool after finding all the things you can do with them. I was mainly interested in the sensor.getPlayerData() command. When i use the code
local sensor = peripheral.wrap("back")
local tableInfo = snsor.getPlayerData(read())
for key, value in pairs(tableInfo) do
print(key.. " = " .. tostring(value))
end
when i use this code it displays a bunch of things about the player.
though some things such as armor shows up as
armor = table: (some random number here)
all im wondering is how would i get this to show up?
sorry if my post is not perfect
for key, value in pairs() do
so to the problem, the server i play on just recently added OpenPeripherals, and i noticed the sensors and thought they are toltally cool after finding all the things you can do with them. I was mainly interested in the sensor.getPlayerData() command. When i use the code
local sensor = peripheral.wrap("back")
local tableInfo = snsor.getPlayerData(read())
for key, value in pairs(tableInfo) do
print(key.. " = " .. tostring(value))
end
when i use this code it displays a bunch of things about the player.
though some things such as armor shows up as
armor = table: (some random number here)
all im wondering is how would i get this to show up?
sorry if my post is not perfect