Posted 11 December 2016 - 08:21 PM
I really need help, as I am new to lua coding I really can't trial and error through this code
(I'm currently on a mobile device and I can't find the button which has that bbcode thing)
while true do
redstone.getInput("left") == true
then
http.post("http://example.com/eg.php?message=On")
else
http.post("http://example.com/eg.php?message=Off")
end
end
I did try to use it without "while true do" and it worked but I need a loop in this case for it to be checked
(I'm currently on a mobile device and I can't find the button which has that bbcode thing)
while true do
redstone.getInput("left") == true
then
http.post("http://example.com/eg.php?message=On")
else
http.post("http://example.com/eg.php?message=Off")
end
end
I did try to use it without "while true do" and it worked but I need a loop in this case for it to be checked