Alles anzeigenAlles anzeigenHabs genau so gemacht wie du mir das hier gezeigt hast aber klappt immer noch nicht.
char_skill.cpp:818:6: error: expected expression
else
^
char_skill.cpp:824:5: error: 'break' statement not in loop or switch statement
break;
^
char_skill.cpp:826:4: error: 'case' statement not in switch statement
case SKILL_MASTER:
^
char_skill.cpp:832:5: error: 'break' statement not in loop or switch statement
break;
^
char_skill.cpp:834:4: error: 'case' statement not in switch statement
case SKILL_GRAND_MASTER:
^
char_skill.cpp:839:5: error: 'break' statement not in loop or switch statement
break;
^
char_skill.cpp:841:2: error: extraneous closing brace ('}')
}
^
char_skill.cpp:845:2: error: C++ requires a type specifier for all declarations
snprintf(szSkillUp, sizeof(szSkillUp), "SkillUp: %s %u %d %d[Bef...
^
char_skill.cpp:846:4: error: use of undeclared identifier 'GetName'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:846:15: error: use of undeclared identifier 'pkSk'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:846:29: error: use of undeclared identifier 'm_pSkillLevels'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:846:44: error: use of undeclared identifier 'pkSk'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:846:71: error: use of undeclared identifier 'm_pSkillLevels'
...GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dwVnum].bMasterType, m_pSk...
^
char_skill.cpp:846:86: error: use of undeclared identifier 'pkSk'
...m_pSkillLevels[pkSk->dwVnum].bMasterType, m_pSkillLevels[pkSk->dwVnum].b...
^
char_skill.cpp:846:108: error: use of undeclared identifier 'SkillPointBefore'
...m_pSkillLevels[pkSk->dwVnum].bLevel, SkillPointBefore, pkSk->dwType);
^
char_skill.cpp:846:126: error: use of undeclared identifier 'pkSk'
...m_pSkillLevels[pkSk->dwVnum].bLevel, SkillPointBefore, pkSk->dwType);
^
char_skill.cpp:848:2: error: C++ requires a type specifier for all declarations
sys_log(0, "%s", szSkillUp);
^
char_skill.cpp:850:24: error: expected function body after function declarator
LogManager::instance().CharLog(this, pkSk->dwVnum, "SKILLUP", sz...
^
char_skill.cpp:851:2: error: C++ requires a type specifier for all declarations
Save();
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
compile cmd_emotion.cpp
20 errors generated.
gmake: *** [Makefile:96: .obj/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
hier mal die char_skill.cpp vl entdeckt ihr wo der fehler liegt O.o
Nicht einfach blind irgendwas einfügen. Du hast die Klammern komplett falsch gesetzt.
erstmal danke allerdings immernoch error
was kann das sein
char_skill.cpp:822:5: error: 'break' statement not in loop or switch statement
break;
^
char_skill.cpp:824:4: error: 'case' statement not in switch statement
case SKILL_MASTER:
^
char_skill.cpp:830:5: error: 'break' statement not in loop or switch statement
break;
^
char_skill.cpp:832:4: error: 'case' statement not in switch statement
case SKILL_GRAND_MASTER:
^
char_skill.cpp:837:5: error: 'break' statement not in loop or switch statement
break;
^
char_skill.cpp:843:2: error: C++ requires a type specifier for all declarations
snprintf(szSkillUp, sizeof(szSkillUp), "SkillUp: %s %u %d %d[Bef...
^
char_skill.cpp:844:4: error: use of undeclared identifier 'GetName'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:844:15: error: use of undeclared identifier 'pkSk'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:844:29: error: use of undeclared identifier 'm_pSkillLevels'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:844:44: error: use of undeclared identifier 'pkSk'
GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dw...
^
char_skill.cpp:844:71: error: use of undeclared identifier 'm_pSkillLevels'
...GetName(), pkSk->dwVnum, m_pSkillLevels[pkSk->dwVnum].bMasterType, m_pSk...
^
char_skill.cpp:844:86: error: use of undeclared identifier 'pkSk'
...m_pSkillLevels[pkSk->dwVnum].bMasterType, m_pSkillLevels[pkSk->dwVnum].b...
^
char_skill.cpp:844:108: error: use of undeclared identifier 'SkillPointBefore'
...m_pSkillLevels[pkSk->dwVnum].bLevel, SkillPointBefore, pkSk->dwType);
^
char_skill.cpp:844:126: error: use of undeclared identifier 'pkSk'
...m_pSkillLevels[pkSk->dwVnum].bLevel, SkillPointBefore, pkSk->dwType);
^
char_skill.cpp:846:2: error: C++ requires a type specifier for all declarations
sys_log(0, "%s", szSkillUp);
^
char_skill.cpp:848:24: error: expected function body after function declarator
LogManager::instance().CharLog(this, pkSk->dwVnum, "SKILLUP", sz...
^
char_skill.cpp:849:2: error: C++ requires a type specifier for all declarations
Save();
^
char_skill.cpp:851:2: error: C++ requires a type specifier for all declarations
ComputePoints();
^
char_skill.cpp:852:2: error: C++ requires a type specifier for all declarations
SkillLevelPacket();
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake: *** [Makefile:96: .obj/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....