Nevermind ive done it now.
What i did was make a new function..............
Then i added this to the main function..........Code:int quitGame() { int quit = 0; char buffer[ BUFFER_SIZE ]; if ( strcmp ( buffer, EXIT_KEY ) ) { quit++; } return quit; }
Now all this has led to a new problem, now when i start the program any key i press quits the game. Any ideas on how to stop this from happening?Code:if ( quitGame() == 1 ) { printf ("\nThank you for playing!"); continue_game = 0; }