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

Rednet question?

Started by CardingiSFun, 25 November 2014 - 05:02 AM
CardingiSFun #1
Posted 25 November 2014 - 06:02 AM
Okay so i wish i could post the code but http api is disabled on the server i play on, but what is the best way to set a string to something else using a different computer? like for example:

computer 1:

local ifReset = true


computer 2:

if ifReset == true do
  codehere
end
KingofGamesYami #2
Posted 25 November 2014 - 01:42 PM
So, you want to "share" a variable between two un-connected, sandboxed programming environments? You'll need to send the variable over rednet.
CardingiSFun #3
Posted 25 November 2014 - 04:35 PM
No i know how to connect them via rednet. They actually already are connected. just i forgot how to make it send the variable.
KingofGamesYami #4
Posted 25 November 2014 - 04:58 PM
rednet.send( id, message )