1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
int Level_diff_chck(){
if (level_diff == 1)
{
Nacht_der_Toten_SndBox();
}
else if (level_diff == 2);
{
Nacht_der_Toten_Intr();
}
else (level_diff == 3);
{
Nacht_der_Toten_Exprt();
}
return 0;
}
|
Can anyone explain to me why I get these errors.
error: expected `;' before "else"
error: expected primary expression before "else"
Help would be appreciated.
Last edited on
you mustn't write ; after if, else if and else.
It is wrong:
if( ... );
It is true:
if( ... )