for example
i(x)
print ("what would you like "i" to be?")
input = read()
input set x
now i know "input set x" isn't correct, so i wondered if anyone could help?
i(x)
print ("what would you like "i" to be?")
input = read()
input set x
i is the variable that i'd like to set when someone puts in an input
i = read()
i = tonumber(read())
i is the variable that i'd like to set when someone puts in an input
so in that case the code would readi = read()
if you want to use it as a number if would readi = tonumber(read())
i is the variable that i'd like to set when someone puts in an input
so in that case the code would readi = read()
if you want to use it as a number if would readi = tonumber(read())
i is the variable that i'd like to set when someone puts in an input
so in that case the code would readi = read()
if you want to use it as a number if would readi = tonumber(read())
update: that doesn't work, it asks for the Var before the program prints the question, why would this be?
i is the variable that i'd like to set when someone puts in an input
so in that case the code would readi = read()
if you want to use it as a number if would readi = tonumber(read())
update: that doesn't work, it asks for the Var before the program prints the question, why would this be?
Quick question here…. are you programming in Lua? on a ComputerCraft computer? I have never been asked for Var ever. can you copy paste the error?
i = read()
print ("Question")
input = read()
print (i)
print("Question")
i = read()
print(i)
that is because the terminal pauses and waits for enter press when read() is called, use this instead.print("Question") i = read() print(i)
function receive()
rednet.receive()
end
shell.run("clear")
print ("Email Program V0.01")
write ("Email Address: ")
ID = read() input = read()
write ("Message: ")
Message = read() input = read()
print (ID," ", Message)
rednet.send(ID, Message)
sleep(1)
print("Message Should be sent to ", ID)
side = "right" -- REPLACE WITH SIDE MODEM IS ON, all lowercase!
rednet.open(side)
function receive()
rednet.receive() -- btw this returns the senderId, message, and distance and will wait until it gets something
end
term.clear()
print("Email Program V0.01")
write("Email Address: ")
id = tonumber( read() )
write("Message: ")
msg = read()
rednet.send( id, msg )
sleep(1)
print("Message sent to"..id)
rednet.close(side)
do this EXACTLY:side = "right" -- REPLACE WITH SIDE MODEM IS ON, all lowercase! rednet.open(side) function receive() rednet.receive() -- btw this returns the senderId, message, and distance and will wait until it gets something end term.clear() print("Email Program V0.01") write("Email Address: ") id = tonumber( read() ) write("Message: ") msg = read() rednet.send( id, msg ) sleep(1) print("Message sent to"..id) rednet.close(side)