Your code is a little strange
do you mean GOTO @LOOP instead of @LOOP? @LOOP is defining a checkpoint in code (a label)
This code looks correct
IF BUTTON() AND #A THEN
BEEP 51
ENDIF
Get rid of 051 and make it 51, in most languages like Java, putting a 0 before the number tells the compiler that that number is in the octal number system, I don't know if that's the case for SmileBASIC though.
@Christofer
*cough* *cough* Java is spelled with a capital J
Your code is almost correct, but typing IF BUTTON() AND #A THEN
allows for multiple buttons to be pressed at once, because #A is a bitwise mask for 0b10000 (16) its a trick commonly used in Java to store up to 31 boolean values in a single number
SmileBASIC is a fantastic language, that combines all sorts of programming tricks into a one
A) yes i forgot about == and the lack of semi colons ect B) that post was wrighten goinig on like -3 days of sleep so i probs missed more than that. . . C) i was trying to help by saying that in basic, not in Java