What are the errors you are getting? (what lines do they occur on?)
From what I can see:
You have a random 'end'. (are you giving us all the code?)
You are using a rednet.receive() and os.pullEvent(). They can both be used to receive messages from another computer and they both return values. (
Click for rednet.receive wiki Click for os.pullEvent() wiki)
os.pullEvent(modem.message) should have quotes in it: os.pullEvent("modem.message") (look at os.pullEvent() wiki)
You are also missing a 'param4' variable which is not declared (I presume it is meant to be returned my the os.pullEvent("modem.message")) (look at os.pullEvent() wiki)
If you have any questions, ask.
Edited by The_Cat, 17 April 2016 - 09:33 AM.