Posted 12 July 2013 - 09:09 AM
Title: Cannot print getMethods table from playerDetector peripheral
Hi,
I'm helping my son to learn how to program in CC, but we have run into a problem.
We want to list all methods of a peripheral with this code:
m=peripherals.getMethod("left")
for i,v in pairs(m) do print(i..": "..v) end
This works perfectly for all other peripherals.
Cheers,
Torben
Hi,
I'm helping my son to learn how to program in CC, but we have run into a problem.
We want to list all methods of a peripheral with this code:
m=peripherals.getMethod("left")
for i,v in pairs(m) do print(i..": "..v) end
This works perfectly for all other peripherals.
Cheers,
Torben