Posted 07 December 2012 - 04:23 PM
I'm trying to make a program for FTB that detects the name of the music disc inside the drive, and if it is still alive from portal or want you gone i want it to do specific things for each, now i've tried getting it to work but i can't get it to. The code so far for finding the name is:
HAHA i got it working!
local label = disk.getAudioTitle("right")
if label == ("pg.stillalive") then
print("hi")
elseif label == ("pg.wantyougone") then
print("Hello")
else
os.shutdown()
end
i need some help figuring this out since that's the last piece i need to complete the code.
HAHA i got it working!
local label = disk.getAudioTitle("right")
if label == ("pg.stillalive") then
print("hi")
elseif label == ("pg.wantyougone") then
print("Hello")
else
os.shutdown()
end
i need some help figuring this out since that's the last piece i need to complete the code.