Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sPeripheralName;
- local tPeripheralMethods;
- print("Enter peripheral name:")
- sPeripheralName = read()
- tPeripheralMethods = peripheral.getMethods(sPeripheralName)
- if tPeripheralMethods == nil then
- print("Peripheral not found!")
- else
- for nIndex = 1, #tPeripheralMethods do
- print(tPeripheralMethods[nIndex])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement