Posted 18 March 2013 - 07:22 PM
I'm using this code from a youtube series and i fixed some of the problems but I keep running into the = expected problem. I have used all I know about lua and cc.
Code:
Code:
local tArgs = { ... }
rednet.open("left")
if tArgs[1] == "read" then
rednet.broadcast(tArgs[2])
a, messagep = rednet.receive(1)
else messagep == null then
elseif
print("You've Got Mail!")
print("-----------------------")
print(messagep)
end
else if tArgs[1] == "send" then
rednet.broadcast("sendmail")
write("To: (in ID) ")
input = read()
rednet.broadcast(input)
else
print("Usage:")
print("mail read (mail id)")
print("mail send")
end
Edited by