Code:
if (totalpoints > 150) //when totalpoints exceed's 350, this need's to be false
{
printf("\n\n\nYou have earned %d points, you are at level 2\n\n\n", totalpoints);
gl_c = 2;
}
else if (totalpoints > 350)
{
printf("\n\n\nYou have earned %d points, you are at level 3\n\n\n", totalpoints);
gl_c = 4;
}
Remove the 'else' part
OR
Code:
if (totalpoints > 150 && totalpoints < 350) //when totalpoints exceed's 350, this need's to be false
{
printf("\n\n\nYou have earned %d points, you are at level 2\n\n\n", totalpoints);
gl_c = 2;
}
else if (totalpoints > 350)
{
printf("\n\n\nYou have earned %d points, you are at level 3\n\n\n", totalpoints);
gl_c = 4;
}