Posted 10 August 2016 - 05:36 PM
So i've been trying to make a program to say the names of the people detected by the detector but i can't make it say them.
s = peripheral.wrap("top")—–Speaker
de = peripheral.wrap("back")—–Player Detector
time = os.time()
formattedtime = textutils.formatTime(time, false)
pl = de.getNearbyPlayers(10)
print("The time is " .. formattedtime)
s.speak("Hello " .. pl .. "The time is " .. formattedtime)
I get the error .temp:7: attempt to concatenate table and string.
So you know this is going to end. Help!
s = peripheral.wrap("top")—–Speaker
de = peripheral.wrap("back")—–Player Detector
time = os.time()
formattedtime = textutils.formatTime(time, false)
pl = de.getNearbyPlayers(10)
print("The time is " .. formattedtime)
s.speak("Hello " .. pl .. "The time is " .. formattedtime)
I get the error .temp:7: attempt to concatenate table and string.
So you know this is going to end. Help!