input code error

unpic

New Member
If I enter the Cyberpet code it works fine, but if I enter the same code in a different prog it says 'Compile error' eg
'Reaction game

main:
high 4
pause 100
if input1 is on then stop
low 4
pause 100
Any suggestions, please?
 

BeanieBots

Moderator
If you have cut and paste the code, did you pick any "spare" characters after the end of line or similar. Try actually typing it in.
The snippet that you have shown has a jump to "stop" but you do not have a label "stop".
Other than that, it all looks fine and should compile as long as a "stop" label is added.
 
Top