You should change this code so that a tie is not declared before you have checked whether player1 or player2 has won. Also, when checking player2 winning you should still use else if.
If you're making a console application, I'd recommend using a 2D array. It makes it easy to draw the board and check adjoining spaces for win conditions.