Hello. First of all, sorry for making the other thread before looking more deeply. I did not make this mistake this time, though.
I have a really odd error. I have no idea what might cause it. Here's the error (Gives me two of these).
\main.cpp(74) : error C2143: syntax error : missing ';' before ')'
\main.cpp(74) : error C2143: syntax error : missing ';' before ')'
Line 74 in my source code is this.
for (PlayerStamina = 50) {
And the "full" local code is this.
case 2:
if (PlayerStamina < 40 || PlayerStamina > 35) {
for (PlayerStamina = 50) {
cout << "You try to block the enemy, but fail." << endl;
DamagePlayer();
PlayerStamina++; } }
else if (PlayerStamina < 20 || PlayerStamina > 30) {
cout << "You try to block the enemy, but fail." << endl;
DamagePlayer();
GivePlayerStamina(); }
break;
I'm running out of ideas here... I'd really like any kind of help.