41 posts
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
71 posts
Location
Latvia
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.
6 posts
Posted 24 November 2012 - 05:41 AM
i can probably make a quick example if you need/want one
41 posts
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
145 posts
Location
the vast cosmos of my mind; binary!
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
818 posts
Posted 26 November 2012 - 08:57 PM
can you send multiple strings in one rednet message? wuuuut? Im pretty sure you cant, @cmurtheepic
2005 posts
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.