r/code • • Jul 31 '19

Halp pls! Does anyone know whats wrong with my code?

Post image
0 Upvotes

7 comments sorted by

10

u/Binau-01 Jul 31 '19

if (gameHasEnded == false) {
gameHasEnded = true;
Restart();
}

You need to remove the " ; " after
(gameHasEnded == false)

And put a " ; " behind
gameHasEnded = true

2

u/MrDreamzz_ Jul 31 '19

That's what I thought and said in his previous topic...

-1

u/AquaTehPup Jul 31 '19

Put a " ; " where?

-1

u/malicart Jul 31 '19

behind

gameHasEnded = true

FFS they told you right where.

-2

u/AquaTehPup Jul 31 '19

That didnt fix the error that's at the bottom of my post

3

u/[deleted] Jul 31 '19

This seems like something put here to stimulate this thread.

0

u/YougCraft_1 Coder Jul 31 '19

Put the Restart Function after the other one