- Home /
WHERE´S THE ERROR?PLEASEEE
it said :¨(113,41): error CS1525: Unexpected symbol ;', expecting
)', or `,'¨ and ¨(115,12): error CS8025: Parsing error¨
private void SetupSkillModifiers() { //melee offence GetSkill((int)SkillName.Melee_Offence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Strength), .25f)); //melee defence GetSkill((int)SkillName.Melee_Defence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Strength), .25f)); GetSkill((int)SkillName.Melee_Defence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Speed), .33f)); //magic offnece GetSkill((int)SkillName.Magic_Offence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Intelligence), .33f)); //magic defence GetSkill((int)SkillName.Magic_Defence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Intelligence), .33f)); //ranged offence GetSkill((int)SkillName.Ranged_Offence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Strength), .25f)); GetSkill((int)SkillName.Ranged_Offence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Speed), .33f)); //ranged defence GetSkill((int)SkillName.Ranged_Defence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Strength), .25f)); GetSkill((int)SkillName.Ranged_Defence).AddModifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Speed), .33f)); }
public void StatUpdate() {
for(int cnt = 0; cnt<_vital.Length; cnt++)
_vital[cnt].Update();
for(int cnt = 0 < _skill.Length; cnt++;
_skill[cnt].Update();
}
}
for(int cnt = 0 < _skill.Length; cnt++;
should be
for(int cnt = 0 < _skill.Length; cnt++)
as in... ) ins$$anonymous$$d of ; which the erros states as well..
"...Unexpected symbol ;', expecting)', or `,'¨ ..."
@Chocopop : For any help, please format your code. You can do this by highlighting all your code, then clicking the 10101 button at the top of the edit window.
Answer by tanoshimi · Jan 04, 2014 at 11:30 PM
The error message pretty much spells it out for you...
for(int cnt = 0 < _skill.Length; cnt++;
should be:
for(int cnt = 0; cnt < _skill.Length; cnt++)
Your answer
Follow this Question
Related Questions
Getting index of the smallest number in a list 1 Answer
NullReferenceException problem 2 Answers
Particle circle HELP 1 Answer
Missing Reference FPS help 1 Answer
Null in GetValidMethodInfo 0 Answers