This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CardingiSFun's profile picture

I need help making a request system

Started by CardingiSFun, 24 November 2012 - 02:10 AM
CardingiSFun #1
Posted 24 November 2012 - 03:10 AM
so im trying to make a request system over rednet. basicly on the sender side u fill out a request forum like

Name:
What do you need:

but i dont know how i would start off since im new at red net and forums
exploder #2
Posted 24 November 2012 - 05:32 AM
Well, I won't write the code for you but I could give you some handy tutorials here about the rednet hoping that they will help you.

Here is tutorial about rednet and it's commands:
http://www.computerc...-modems-rednet/
Here you can learn how to save data so you won't lose it because server/computer restarted:
http://www.computerc...ng-from-a-file/

If you need anything else just ask.
techlevel123 #3
Posted 24 November 2012 - 05:41 AM
i can probably make a quick example if you need/want one
CardingiSFun #4
Posted 26 November 2012 - 07:37 PM
i can probably make a quick example if you need/want one
That would be loveley thanks :D/> i would love a example to learn from it
cmurtheepic #5
Posted 26 November 2012 - 08:51 PM
you know if you did know
you could store the name into a variable and what they need into a varaible and do something like this

rednet.open(the side the modem is on)
while true do --f you want it to be in a loop
write "name: "
name = io.read()
term.setCursorPos(1,3)
write "what do you need?: "
wdyn = io.read()
term.clear()
write "sending request!!!"
sleep(1)
rednet.send(server/ request center id, name.., wdyn..)
end
Doyle3694 #6
Posted 26 November 2012 - 08:57 PM
can you send multiple strings in one rednet message? wuuuut? Im pretty sure you cant, @cmurtheepic
ChunLing #7
Posted 27 November 2012 - 12:20 AM
You could concatenate several strings together and send them as one string…it kinda looks like that's what was intended.