Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

problem z kompilacja game i binki // limit za pomoc


Rekomendowane odpowiedzi

Opublikowano

Siema, mam problem z kompilacja 

Binka ( 2 errory) :

 

 

klinqv.jpg

 

 

 

Game (plik errlog)

 

 

 

In file included from char.cpp:4:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_horse.cpp:14:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char.cpp:62:
PetSystem.h:164:31: warning: no newline at end of file
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
char.cpp:7216: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7224:2: warning: no newline at end of file
In file included from char_item.cpp:44:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:47:
belt_inventory_helper.h:108:42: warning: no newline at end of file
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from PetSystem.cpp:8:
PetSystem.h:164:31: warning: no newline at end of file
In file included from PetSystem.cpp:9:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
In file included from cmd_general.cpp:36:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
char_battle.cpp: In function 'void GiveExp(CHARACTER*, CHARACTER*, int)':
char_battle.cpp:2497: error: 'struct CPetSystem::TPetActorMap' has not been declared
char_battle.cpp:2497: error: expected `;' before 'iter'
char_battle.cpp:2497: error: 'iter' was not declared in this scope
char_battle.cpp:2497: error: invalid use of incomplete type 'struct CPetSystem'
char.h:18: error: forward declaration of 'struct CPetSystem'
char_battle.cpp:2498: error: 'CPetActor' was not declared in this scope
char_battle.cpp:2498: error: 'petActor' was not declared in this scope
constants.cpp:426: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:427: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:428: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:429: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:430: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:431: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:432: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:433: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:434: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:435: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:436: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:437: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:438: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:439: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:440: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:441: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:442: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:443: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:444: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:445: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:446: warning: this decimal constant is unsigned only in ISO C90
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2400: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2404: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2416: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2420: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2447: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2455: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5103: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5175: warning: unused variable 'wDestCell'
char_item.cpp:5176: warning: unused variable 'bDestInven'
gmake: *** [OBJDIR/char_battle.o] Bł±d 1
gmake: *** Oczekiwanie na niezakończone zadania....
char_item.cpp: In member function 'bool CHARACTER::PickupItem(DWORD)':
char_item.cpp:5882: error: 'bCount2' was not declared in this scope
char_item.cpp:5941: error: 'bCount2' was not declared in this scope
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6176: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6240: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6252: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'CItem* CHARACTER::AutoGiveItem(DWORD, BYTE, int, bool)':
char_item.cpp:6619: error: 'bCount2' was not declared in this scope
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7438: warning: unused variable 'itemType'
char_item.cpp:7439: warning: unused variable 'itemSubType'
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3088: warning: comparison between signed and unsigned integer expressions
In file included from desc_manager.cpp:15:
ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
gmake: *** [OBJDIR/char_item.o] Bł±d 1
cube.cpp: In function 'bool Cube_make(CHARACTER*)':
cube.cpp:544: warning: comparison between signed and unsigned integer expressions
cube.cpp: In function 'void Cube_MakeCubeInformationText()':
cube.cpp:716: warning: unused variable 'npcVNUM'
cube.cpp: In function 'bool Cube_InformationInitialize()':
cube.cpp:783: warning: comparison between signed and unsigned integer expressions
In file included from config.cpp:22:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:435: warning: NULL used in arithmetic
config.cpp:459: warning: NULL used in arithmetic
config.cpp:483: warning: NULL used in arithmetic
config.cpp:505: warning: unused variable 'line'
desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3935: warning: NULL used in arithmetic
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4357: warning: 'cell' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3977: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
 

 

 

 

Proszę was o pomoc . Za trafną pomoc dam limit lajków .

7plz01.jpg

Opublikowano

fix na czarowne ostrze,efekt expienia zwierzaka,znikanie potworow po 8 sekundach i to tyle 

 

a w kliencie problem z pokazywaniem  ilosci zycia potworka ( Binka od Terenzo pod najnowsze liby z py27 itp itd, moze to ma jakis wplyw na to? )

7plz01.jpg

Opublikowano

fix na czarowne ostrze,efekt expienia zwierzaka,znikanie potworow po 8 sekundach i to tyle 

 

Pokaż jego zawartość. Najlepiej na wklej.to

Opublikowano

Zawartość char_battle.cpp : http://wklej.to/8jdar

 

@Edit

 

Z binką sobie poradziłem .

char_battle.cpp też już ogarnąłem .

Teraz kwestia leży w char_item.cpp 

 

//////Edit

Myślę że znalazłem rozwiązanie w char_item.cpp //dam edita jak się skompiluje albo nie

Tymczasem @Noresta łap lajka za chęci :) To się ceni . !

 

///Edit

Dobra ogarnąłem to sobie , kilka moich przeoczeń ot co ! :)

 

@mod

Do zakmnięcia :)

7plz01.jpg

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...