Posted 27 October 2015 - 08:10 AM
Where is the problem in this program?
Here is a link to the documentation for the peripheral i use.
Here is a link to the documentation for the peripheral i use.
local p = peripheral.wrap("left")
while true do
sleep(0.5)
if p.getNearbyPlayers(5)[1] == nil then
redstone.setOutput("bottom", false)
else
name = p.getNearbyPlayers(5)[1]["player"] --This is where it fails
if name == "tilde1000" then
redstone.setOutput("bottom", true)
end
end
end