2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by adelphe
0
for(int run = 0; gamemenu != run;)
	{
		if(gamemenu == 1)
		{
			gamestart();
		}

That is an infinite loop because gamestart() never changes the value of gamemenu, nor does it really do anything at all.

0
for(int run = 0; gamemenu != run;)
	{
		if(gamemenu == 1)
		{
			gamestart();
		}

That is an infinite loop because gamestart() never changes the value of gamemenu, nor does it really do anything at all.

Thanks for the reply. the code is half-done. i am just testing out whether if the high score is updated/changable etc.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.