Problema mount system

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Marius Dragomir
Membru Club

Membru Club
Mesaje: 1020
Membru din: 13 Noi 2017, 21:32
Server: HellHound
Regat: Jinno
Aprecieri: 499  
Mulţumiri: 1211  
Discord: Copiază ID
Medalii

*Problemă: Compilare mount system
Tipologie server: pvm
*Resursă folosită: http://just4metin.ro/sursa/metin2-mount ... 72604.html
*ServerFiles utilizat: sky/neleus
*Syserr:
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
char_change_empire.cpp: In member function 'int CHARACTER::ChangeEmpire(BYTE)':
char_change_empire.cpp:29: warning: too few arguments for format
char_change_empire.cpp:29: warning: too few arguments for format
char_change_empire.cpp:89: warning: too few arguments for format
char_change_empire.cpp:89: warning: too few arguments for format
char_change_empire.cpp: In member function 'DWORD CHARACTER::GetAID() const':
char_change_empire.cpp:165: warning: too few arguments for format
char_change_empire.cpp:165: warning: too few arguments for format
compile char_skill.cpp
compile char_state.cpp
compile PetSystem.cpp
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_state.cpp:505: error: expected unqualified-id before 'if'
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:906: warning: unused variable 'rider'
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2426: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2430: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2446: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2473: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2481: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5141: warning: comparison between signed and unsigned integer expressions
char_item.cpp:1708: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5211: warning: unused variable 'wCell'
char_item.cpp:5212: warning: unused variable 'window_type'
char_item.cpp:5213: warning: unused variable 'wDestCell'
char_item.cpp:5214: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6305: warning: array subscript has type 'char'
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7761: warning: unused variable 'itemType'
char_item.cpp:7762: warning: unused variable 'itemSubType'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6448: warning: 'pBuff' may be used uninitialized in this function
gmake: *** [OBJDIR/char_state.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from char.cpp:74:
offlineshop_config.h:19:7: warning: no newline at end of file
char.cpp:7748: warning: this decimal constant is unsigned only in ISO C90
char.cpp: In member function 'void CHARACTER::OpenMyOfflineShop(const char*, TShopItemTable*, BYTE, BYTE)':
char.cpp:4440: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long long int'
char.cpp:4440: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long long int'
char.cpp: In member function 'void CHARACTER::LoadGiftPage(int)':
char.cpp:7825: warning: comparison between signed and unsigned integer expressions
char.cpp: In member function 'void CHARACTER::OpenMyShop(const char*, TShopItemTable*, BYTE, DWORD)':
char.cpp:7966: warning: comparison between signed and unsigned integer expressions
char.cpp:7988: warning: comparison between signed and unsigned integer expressions
char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
char.cpp:8244: warning: comparison is always false due to limited range of data type
char.cpp: In member function 'void CHARACTER::OpenShop(DWORD, const char*, bool)':
char.cpp:8418: warning: comparison is always false due to limited range of data type
char.cpp:8392: warning: unused variable 'c'
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'
char.cpp: In member function 'void CHARACTER::DeleteMyShop()':
char.cpp:8496: warning: 'gold' may be used uninitialized in this function
char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
char.cpp:8262: warning: 'val' may be used uninitialized in this function
char.cpp:8261: warning: 'attr' may be used uninitialized in this function
char.cpp:8255: warning: 'soc' may be used uninitialized in this function
char.cpp:8221: warning: 'id' may be used uninitialized in this function
char.cpp: In member function 'void CHARACTER::OpenShop(DWORD, const char*, bool)':
char.cpp:8440: warning: 'val' may be used uninitialized in this function
char.cpp:8439: warning: 'attr' may be used uninitialized in this function
char.cpp:8433: warning: 'soc' may be used uninitialized in this function
char.cpp:8401: warning: 'id' may be used uninitialized in this function
Poză:
*Detalii suplimentare: imi da aceasta eroare la compilare, am facut cateva modificari la asezare in fisiere pentru ca nu gaseam exact dupa tutorial tot ce spunea

Aici fisierele modificate daca are cineva nevoie
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.
Afișează semnătura
Avatar utilizator
Marius Dragomir
Membru Club

Membru Club
Mesaje: 1020
Membru din: 13 Noi 2017, 21:32
Server: HellHound
Regat: Jinno
Aprecieri: 499  
Mulţumiri: 1211  
Discord: Copiază ID
Medalii

UP
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.
Afișează semnătura
Avatar utilizator
Marius Dragomir
Membru Club

Membru Club
Mesaje: 1020
Membru din: 13 Noi 2017, 21:32
Server: HellHound
Regat: Jinno
Aprecieri: 499  
Mulţumiri: 1211  
Discord: Copiază ID
Medalii

up
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.
Afișează semnătura
Avatar utilizator
Marius Dragomir
Membru Club

Membru Club
Mesaje: 1020
Membru din: 13 Noi 2017, 21:32
Server: HellHound
Regat: Jinno
Aprecieri: 499  
Mulţumiri: 1211  
Discord: Copiază ID
Medalii

Up
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.
Afișează semnătura
Avatar utilizator
Marius Dragomir
Membru Club

Membru Club
Mesaje: 1020
Membru din: 13 Noi 2017, 21:32
Server: HellHound
Regat: Jinno
Aprecieri: 499  
Mulţumiri: 1211  
Discord: Copiază ID
Medalii

Up, am rezolvat o parte, imi apare asa acum la compilare
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
compile char_skill.cpp
compile char_state.cpp
char_change_empire.cpp: In member function 'int CHARACTER::ChangeEmpire(BYTE)':
char_change_empire.cpp:29: warning: too few arguments for format
char_change_empire.cpp:29: warning: too few arguments for format
char_change_empire.cpp:89: warning: too few arguments for format
char_change_empire.cpp:89: warning: too few arguments for format
char_change_empire.cpp: In member function 'DWORD CHARACTER::GetAID() const':
char_change_empire.cpp:165: warning: too few arguments for format
char_change_empire.cpp:165: warning: too few arguments for format
compile PetSystem.cpp
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:907: error: variable or field 'rider' declared void
char_state.cpp:906: warning: unused variable 'rider'
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:2426: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2430: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2446: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2473: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2481: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5141: warning: comparison between signed and unsigned integer expressions
char_item.cpp:1708: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5211: warning: unused variable 'wCell'
char_item.cpp:5212: warning: unused variable 'window_type'
char_item.cpp:5213: warning: unused variable 'wDestCell'
char_item.cpp:5214: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6305: warning: array subscript has type 'char'
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7761: warning: unused variable 'itemType'
char_item.cpp:7762: warning: unused variable 'itemSubType'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6448: warning: 'pBuff' may be used uninitialized in this function
gmake: *** [OBJDIR/char_state.o] Error 1
gmake: *** Waiting for unfinished jobs....
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'
char.cpp:63:25: error: MountSystem.h: No such file or directory
In file included from char.cpp:74:
offlineshop_config.h:19:7: warning: no newline at end of file
char.cpp:7748: warning: this decimal constant is unsigned only in ISO C90
char.cpp: In member function 'void CHARACTER::Destroy()':
char.cpp:458: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
char.cpp:459: warning: possible problem detected in invocation of delete operator:
char.cpp:459: warning: invalid use of incomplete type 'struct CMountSystem'
char.h:19: warning: forward declaration of 'struct CMountSystem'
char.cpp:459: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
char.cpp: In member function 'void CHARACTER::SetPlayerProto(const TPlayerTable*)':
char.cpp:2001: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
char.cpp:2002: warning: possible problem detected in invocation of delete operator:
char.cpp:2002: warning: invalid use of incomplete type 'struct CMountSystem'
char.h:19: warning: forward declaration of 'struct CMountSystem'
char.cpp:2002: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
char.cpp:2005: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
char.cpp: In member function 'void CHARACTER::OpenMyOfflineShop(const char*, TShopItemTable*, BYTE, BYTE)':
char.cpp:4440: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long long int'
char.cpp:4440: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long long int'
char.cpp: In member function 'void CHARACTER::LoadGiftPage(int)':
char.cpp:7825: warning: comparison between signed and unsigned integer expressions
char.cpp: In member function 'void CHARACTER::OpenMyShop(const char*, TShopItemTable*, BYTE, DWORD)':
char.cpp:7966: warning: comparison between signed and unsigned integer expressions
char.cpp:7988: warning: comparison between signed and unsigned integer expressions
char.cpp: In member function 'void CHARACTER::UpdateShopItems()':
char.cpp:8244: warning: comparison is always false due to limited range of data type
char.cpp: In member function 'void CHARACTER::OpenShop(DWORD, const char*, bool)':
char.cpp:8418: warning: comparison is always false due to limited range of data type
char.cpp:8392: warning: unused variable 'c'
char.cpp: In member function 'void CHARACTER::MountSummon(CItem*)':
char.cpp:8616: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
char.cpp: In member function 'void CHARACTER::MountUnsummon(CItem*)':
char.cpp:8645: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
char.cpp:8647: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
char.cpp: In member function 'void CHARACTER::CheckMount()':
char.cpp:8676: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
char.cpp:8678: error: invalid use of incomplete type 'struct CMountSystem'
char.h:19: error: forward declaration of 'struct CMountSystem'
gmake: *** [OBJDIR/char.o] Error 1
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.
Afișează semnătura
Avatar utilizator
Marius Dragomir
Membru Club

Membru Club
Mesaje: 1020
Membru din: 13 Noi 2017, 21:32
Server: HellHound
Regat: Jinno
Aprecieri: 499  
Mulţumiri: 1211  
Discord: Copiază ID
Medalii

Cer T/C.
Pentru acest mesaj, Marius Dragomir for the post:
Clawders
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.
Afișează semnătura
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

ARHIVAT
Închis
Răspunsuri
5
Vizualizări
233
Răspunsuri
1
Vizualizări
283
Răspunsuri
3
Vizualizări
566
Răspunsuri
2
Vizualizări
308

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie