Parse error before "else" in C?

I get a parse error every time "else" is preceded by the summary. I don't know how to fix this or why it's even doing it. Does anyone have any insight on how to fix it or rewrite my code to make it better? while(MenuSelection == 1) { do{ printf("Throw how many dice for... show more I get a parse error every time "else" is preceded by the summary. I don't know how to fix this or why it's even doing it.

Does anyone have any insight on how to fix it or rewrite my code to make it better?

while(MenuSelection == 1)
{
do{
printf("Throw how many dice for the Attacker? (1-3): ");
scanf("%d",&AttackerDice);

if(AttackerDice < 1 || AttackerDice > 3)
printf("That entry was not valid. Please try again: \n");
}while(AttackerDice < 1 || AttackerDice > 3);

do{
printf("Throw how many dice for the Defender? (1-2): ");
scanf("%d",&DefenderDice);

if(DefenderDice < 1 || DefenderDice > 2)
printf("That entry was not valid. Please try again: \n");
}while(DefenderDice < 1 || DefenderDice > 2);

srandom(seed);

if(AttackerDice == 1)
for(i = 0;i < 1;i++)
{
Aroll_1 = random() % 6 + 1;
printf("Attacker throws: %d\n",Aroll_1);
}
else if(AttackerDice == 2)
for(i = 0;i < 1;i++)
{
Aroll_1 = random() % 6 + 1;
Aroll_2 = random() & 6 + 1;
printf("Attacker throws: %d %d\n",Aroll_1,Aroll_2);
}
else if(AttackerDice == 3)
for(i = 0;i < 1;i++)
{
Aroll_1 = random() % 6 + 1;
Aroll_2 = random() % 6 + 1;
Aroll_3 = random() % 6 + 1;
printf("Attacker throws: %d %d %d\n",Aroll_1,Aroll_2,Aroll_3);
}

if(DefenderDice == 1)
for(i = 0;i < 1;i++)
{
Droll_1 = random() % 6 + 1;
printf("Defender throws: %d\n",Droll_1);
}
else if(DefenderDice == 2)
for(i = 0;i < 1;i++)
{
Droll_1 = random() % 6 + 1;
Droll_2 = random() % 6 + 1;
printf("Defender throws: %d %d\n",Droll_1,Droll_2);
}

if(Droll_1 > Aroll_1 || Aroll_2 || Aroll_3)
printf("Win goes to Defender!\n");
summary++;
else if(Droll_1 < Aroll_1 || Aroll_2 || Aroll_3)
printf("Win goes to Attacker!\n");
summary--;

if(Droll_2 > Aroll_1 || Aroll_2 || Aroll_3)
printf("Win goes to Defender!\n");
summary++;
else if(Droll_2 < Aroll_1 || Aroll_2 || Aroll_3)
printf("Win goes to Attacker!\n");
summary--;

if(summary == 2)
printf("Summary: Attacker loses 2\n");
else if(summary == 1)
printf("Summary: Attacker loses 1\n");
else if(summary == 0)
printf("Summary: Defender loses 1\n");
else
printf("Summary: Defender loses 2\n");

printf("Good-bye, and thanks for playing!\n");

return 0;
}

I am extremely new to programming, in case you couldn't tell XD
2 answers 2