Posted 21 May 2015 - 03:40 PM
Hi guys, i got a problem and I need your help to fix it, so i'm working on program, it work but i cant leave function so my program not work totaly, this is the program : http://pastebin.com/3WsQrvGX
And this is the function :
And this is the function :
- function getbtn()
- request(81, requestG[i])
- id, message = rednet.receive()
- if(id==81) then
- if(message=="true") then
- can=false
- if(i==1) then
- bt1ac()
- elseif(i==2) then
- bt2ac()
- elseif(i==3) then
- bt3ac()
- end
- else
- can=false
- if(i==1) then
- bt1inac()
- elseif(i==2) then
- bt2inac()
- elseif(i==3) then
- bt3inac()
- end
- end
- end
- if(i==3) then
- print(can)
- end
- if(i <= 3) then
- i=i+1
- getbtn()
- end
- end – end function getbtn