samedi 6 août 2016

Syntax error on If Statement

if message_1 <= rand_numb:
    print("Too High, Try Again")
elif message_1 >= rand_numb:
    print("Too Low, Try Again")
else message_1 == rand_numb:
    print("Nice Job! R to play again; Q to quit")

        if event.type == pygame.Q:
            sys.exit()

        else event.type == pygame.R:
            break
            gotoline(5)

I have been making games for a while but I just started on python. making a number guessing game out of boredom but I keep getting a Syntax Error at the else statement, first variable; also, Indentation Error on the same line, last variable. Thanks.

Aucun commentaire:

Enregistrer un commentaire