Jump to content

How can i fix this? (Source)


Recommended Posts

ani.cpp: In function 'const char* FN_race_name(int)':
ani.cpp:21: error: 'MAIN_RACE_WOLFMAN_M' was not declared in this scope
ani.cpp: In function 'const char* FN_weapon_type(int)':
ani.cpp:41: error: 'WEAPON_CLAW' was not declared in this scope
ani.cpp: In member function 'bool ANI::load()':
ani.cpp:132: error: too many initializers for 'const char* [8]'
ani.cpp: In member function 'DWORD ANI::load_one_weapon(const char*, int, BYTE, bool)':
ani.cpp:177: error: 'WEAPON_CLAW' was not declared in this scope
ani.cpp: In member function 'DWORD ANI::attack_speed(int, int, BYTE, bool)':
ani.cpp:226: error: 'MAIN_RACE_WOLFMAN_M' was not declared in this scope
ani.cpp:241: error: 'WEAPON_CLAW' was not declared in this scope
ani.cpp: In function 'const char* FN_race_string(int)':
ani.cpp:264: error: 'MAIN_RACE_WOLFMAN_M' was not declared in this scope
ani.cpp: In function 'const char* FN_weapon_string(int)':
ani.cpp:281: error: 'WEAPON_CLAW' was not declared in this scope
OXEvent.cpp: In member function 'bool COXEventManager::LogWinner()':
OXEvent.cpp:405: warning: unused variable 'pkChar'
gmake: *** [OBJDIR/ani.o] B³±d 1
gmake: *** Oczekiwanie na niezakoñczone zadania....
banword.cpp: In member function 'bool CBanwordManager::CheckString(const char*, size_t)':
banword.cpp:39: error: 'decltype' was not declared in this scope
banword.cpp:39: error: expected `;' before 'it'
banword.cpp:41: error: 'it' was not declared in this scope
banword.cpp: In member function 'void CBanwordManager::ConvertString(char*, size_t)':
banword.cpp:75: error: 'decltype' was not declared in this scope
banword.cpp:75: error: expected `;' before 'it'
banword.cpp:77: error: 'it' was not declared in this scope
gmake: *** [OBJDIR/banword.o] B³±d 1
blend_item.cpp: In function 'bool Blend_Item_init()':
blend_item.cpp:30: error: 'LocaleService_GetBasePath' was not declared in this scope
gmake: *** [OBJDIR/blend_item.o] B³±d 1
battle.cpp: In function 'int CalcAttBonus(CHARACTER*, CHARACTER*, int)':
battle.cpp:270: error: 'JOB_WOLFMAN' was not declared in this scope
battle.cpp:271: error: 'POINT_ATTBONUS_WOLFMAN' was not declared in this scope
battle.cpp:296: error: 'JOB_WOLFMAN' was not declared in this scope
battle.cpp:297: error: 'POINT_RESIST_WOLFMAN' was not declared in this scope
battle.cpp: In function 'int CalcMeleeDamage(CHARACTER*, CHARACTER*, bool, bool)':
battle.cpp:361: error: 'WEAPON_CLAW' was not declared in this scope
battle.cpp: In function 'int battle_hit(CHARACTER*, CHARACTER*, int&)':
battle.cpp:550: error: 'WEAPON_CLAW' was not declared in this scope
battle.cpp:551: error: 'POINT_RESIST_CLAW' was not declared in this scope
battle.cpp: In function 'DWORD GET_ATTACK_SPEED(CHARACTER*)':
battle.cpp:586: error: 'WEAPON_CLAW' was not declared in this scope
gmake: *** [OBJDIR/battle.o] B³±d 1

How can i fix this?

Download cpp files:  http://www.file-upload.net/download-10747811/files.rar.html

 

Edited by Sarahx3
Link to comment
Share on other sites

  • Premium

Oh, I see. As long you're not using one of the leaked sources, I can't really do anything but speculate. It's possible that:

  1. In battle.cpp, you have an include statement which is pointing wrong. In the folder where battle.cpp is, do you have another folder called lua and in it a file called lua_incl.h? If not, that's the cause. You have to find that lua_incl.h file and either move it into the lua folder, or modify the include statement(s) to correctly point to it.
  2. You don't have a lua_incl.h file at all, anywhere in the source files, and should try copying one from the leaked sources.
  3. Maybe the makefiles aren't properly configured (quite unlikely, but still possible)

I can't really give you any actual advice more than that, because, as I earlier said, I don't know how the seller modified them.

  • Love 1
Link to comment
Share on other sites

I fix the lua_incl.h error (it was false path in the battle.cpp)

Now i have this error:

ani.cpp: In function 'const char* FN_race_name(int)':
ani.cpp:21: error: 'MAIN_RACE_WOLFMAN_M' was not declared in this scope
ani.cpp: In function 'const char* FN_weapon_type(int)':
ani.cpp:41: error: 'WEAPON_CLAW' was not declared in this scope
ani.cpp: In member function 'bool ANI::load()':
ani.cpp:132: error: too many initializers for 'const char* [8]'
ani.cpp: In member function 'DWORD ANI::load_one_weapon(const char*, int, BYTE, bool)':
ani.cpp:177: error: 'WEAPON_CLAW' was not declared in this scope
ani.cpp: In member function 'DWORD ANI::attack_speed(int, int, BYTE, bool)':
ani.cpp:226: error: 'MAIN_RACE_WOLFMAN_M' was not declared in this scope
ani.cpp:241: error: 'WEAPON_CLAW' was not declared in this scope
ani.cpp: In function 'const char* FN_race_string(int)':
ani.cpp:264: error: 'MAIN_RACE_WOLFMAN_M' was not declared in this scope
ani.cpp: In function 'const char* FN_weapon_string(int)':
ani.cpp:281: error: 'WEAPON_CLAW' was not declared in this scope
OXEvent.cpp: In member function 'bool COXEventManager::LogWinner()':
OXEvent.cpp:405: warning: unused variable 'pkChar'
gmake: *** [OBJDIR/ani.o] B³±d 1
gmake: *** Oczekiwanie na niezakoñczone zadania....
banword.cpp: In member function 'bool CBanwordManager::CheckString(const char*, size_t)':
banword.cpp:39: error: 'decltype' was not declared in this scope
banword.cpp:39: error: expected `;' before 'it'
banword.cpp:41: error: 'it' was not declared in this scope
banword.cpp: In member function 'void CBanwordManager::ConvertString(char*, size_t)':
banword.cpp:75: error: 'decltype' was not declared in this scope
banword.cpp:75: error: expected `;' before 'it'
banword.cpp:77: error: 'it' was not declared in this scope
gmake: *** [OBJDIR/banword.o] B³±d 1
blend_item.cpp: In function 'bool Blend_Item_init()':
blend_item.cpp:30: error: 'LocaleService_GetBasePath' was not declared in this scope
gmake: *** [OBJDIR/blend_item.o] B³±d 1
battle.cpp: In function 'int CalcAttBonus(CHARACTER*, CHARACTER*, int)':
battle.cpp:270: error: 'JOB_WOLFMAN' was not declared in this scope
battle.cpp:271: error: 'POINT_ATTBONUS_WOLFMAN' was not declared in this scope
battle.cpp:296: error: 'JOB_WOLFMAN' was not declared in this scope
battle.cpp:297: error: 'POINT_RESIST_WOLFMAN' was not declared in this scope
battle.cpp: In function 'int CalcMeleeDamage(CHARACTER*, CHARACTER*, bool, bool)':
battle.cpp:361: error: 'WEAPON_CLAW' was not declared in this scope
battle.cpp: In function 'int battle_hit(CHARACTER*, CHARACTER*, int&)':
battle.cpp:550: error: 'WEAPON_CLAW' was not declared in this scope
battle.cpp:551: error: 'POINT_RESIST_CLAW' was not declared in this scope
battle.cpp: In function 'DWORD GET_ATTACK_SPEED(CHARACTER*)':
battle.cpp:586: error: 'WEAPON_CLAW' was not declared in this scope
gmake: *** [OBJDIR/battle.o] B³±d 1

i Upload the cpp files.

 

 

This is the hidden content, please

This is the hidden content, please

This is the hidden content, please

This is the hidden content, please

This is the hidden content, please

I uploaded the files with the errors.

Edited by Sarahx3
files uploaded
  • Metin2 Dev 1
Link to comment
Share on other sites

please help me

What help do you need, woman?
Do not you understand that your files are destroyed, we know where to what kind of files you have.

There may be 100 causes, 

 

if you do not check files, I would not know.
Post the entire source if you want and fix it for you

Edited by Ira™
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Auto Potion refill event

    2. 0

      Different Staff Wanted!!

    3. 11

      Voooxy aka m2core.tech scammer

    4. 1

      QUESTS only appear on CH1

    5. 4

      Rubinum - Serverfiles [VDI]

    6. 1

      QUESTS only appear on CH1

    7. 37

      OLDGODSMT2 [ MEGA SF RELEASE ]

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.