Sorry for all the trouble. Fixed it cus of some stupid mistake.

thanks for the time.

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.

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.