Problema implementare Chest Drop #ZeNu

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Avatar utilizator
Vladii
Utilizator interzis !

Utilizator interzis !
Mesaje: 402
Membru din: 03 Iun 2018, 18:33
Server: Arena2
Regat: Chunjo
Aprecieri: 230  
Mulţumiri: 252  
Discord: Copiază ID
 Contact:
Medalii

*Problemă:Eroare compilare sursa game
Tipologie server: PVM
*Resursă folosită:http://just4metin.ro/sursa/chest-view-drop-t68803.html
*ServerFiles utilizat: Fliege
*Syserr: In client nu apare nimic
Poză: las tot ce scrie in putty
*Detalii suplimentare:
gmake: Warning: File `../../common/service.h' has modification time 40421 s in the future
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
In file included from battle.cpp:9:
item_manager.h:153: error: expected ';' before 'int'
In file included from battle.cpp:15:
guild.h:47: error: expected `;' before end of line
guild.h:47: error: expected `}' before end of line
In file included from battle.cpp:9:
item_manager.h: In constructor 'CSpecialItemGroup::CSpecialItemGroup(DWORD, BYTE)':
item_manager.h:67: error: class 'CSpecialItemGroup' does not have any field named 'm_dwVnum'
item_manager.h:67: error: class 'CSpecialItemGroup' does not have any field named 'm_bType'
item_manager.h: In member function 'void CSpecialItemGroup::AddItem(DWORD, int, int, int)':
item_manager.h:74: error: 'm_vecProbs' was not declared in this scope
item_manager.h:76: error: 'm_vecProbs' was not declared in this scope
item_manager.h:77: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'bool CSpecialItemGroup::IsEmpty() const':
item_manager.h:82: error: 'm_vecProbs' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetMultiIndex(std::vector<int, std::allocator<int> >&) const':
item_manager.h:92: error: 'm_bType' was not declared in this scope
item_manager.h:95: error: 'm_vecProbs' was not declared in this scope
item_manager.h:100: error: 'm_vecProbs' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetOneIndex() const':
item_manager.h:119: error: 'm_vecProbs' was not declared in this scope
item_manager.h:120: error: invalid type in declaration before '=' token
item_manager.h:120: error: 'lower_bound' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetVnum(int) const':
item_manager.h:126: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetCount(int) const':
item_manager.h:131: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetRarePct(int) const':
item_manager.h:136: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'bool CSpecialItemGroup::Contains(DWORD) const':
item_manager.h:141: error: 'm_vecItems' was not declared in this scope
In file included from battle.cpp:15:
guild.h: At global scope:
guild.h:47: error: expected unqualified-id before end of line
guild.h:47: error: expected declaration before end of line
compile castle.cpp
gmake: *** [OBJDIR/battle.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from building.cpp:4:
item_manager.h:153: error: expected ';' before 'int'
In file included from building.cpp:10:
guild.h:47: error: expected `;' before end of line
guild.h:47: error: expected `}' before end of line
In file included from building.cpp:4:
item_manager.h: In constructor 'CSpecialItemGroup::CSpecialItemGroup(DWORD, BYTE)':
item_manager.h:67: error: class 'CSpecialItemGroup' does not have any field named 'm_dwVnum'
item_manager.h:67: error: class 'CSpecialItemGroup' does not have any field named 'm_bType'
item_manager.h: In member function 'void CSpecialItemGroup::AddItem(DWORD, int, int, int)':
item_manager.h:74: error: 'm_vecProbs' was not declared in this scope
item_manager.h:76: error: 'm_vecProbs' was not declared in this scope
item_manager.h:77: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'bool CSpecialItemGroup::IsEmpty() const':
item_manager.h:82: error: 'm_vecProbs' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetMultiIndex(std::vector<int, std::allocator<int> >&) const':
item_manager.h:92: error: 'm_bType' was not declared in this scope
item_manager.h:95: error: 'm_vecProbs' was not declared in this scope
item_manager.h:100: error: 'm_vecProbs' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetOneIndex() const':
item_manager.h:119: error: 'm_vecProbs' was not declared in this scope
item_manager.h:120: error: invalid type in declaration before '=' token
item_manager.h:120: error: 'lower_bound' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetVnum(int) const':
item_manager.h:126: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetCount(int) const':
item_manager.h:131: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'int CSpecialItemGroup::GetRarePct(int) const':
item_manager.h:136: error: 'm_vecItems' was not declared in this scope
item_manager.h: In member function 'bool CSpecialItemGroup::Contains(DWORD) const':
item_manager.h:141: error: 'm_vecItems' was not declared in this scope
In file included from building.cpp:10:
guild.h: At global scope:
guild.h:47: error: expected unqualified-id before end of line
guild.h:47: error: expected declaration before end of line
gmake: *** [OBJDIR/building.o] Error 1
root@localhost:/usr/src/Source/Server/game/src #
root@localhost:/usr/src/Source/Server/game/src #

Help :))
Avatar utilizator
BeauDeCiuda
Utilizator interzis !

Utilizator interzis !
Mesaje: 1915
Membru din: 24 Mar 2014, 16:25
Server: http://infomanii.ro
Regat: Chunjo
Aprecieri: 169  
Mulţumiri: 225  
 Contact:
Medalii

item_manager.h:153: error: expected ';' before 'int' ai rezolvarea in fata si ceri help :))))
Pentru acest mesaj, BeauDeCiuda for the post:
Vladii
Imagine
Afișează semnătura
Avatar utilizator
Vladii
Utilizator interzis !

Utilizator interzis !
Mesaje: 402
Membru din: 03 Iun 2018, 18:33
Server: Arena2
Regat: Chunjo
Aprecieri: 230  
Mulţumiri: 252  
Discord: Copiază ID
 Contact:
Medalii

BeauDeCiuda scrie:item_manager.h:153: error: expected ';' before 'int' ai rezolvarea in fata si ceri help :))))
Bun :)) acum mai am doar atata, aici tot nu inteleg.
item_manager.h:168: error: 'int CSpecialItemGroup::GetGroupSize() const' cannot be overloaded
item_manager.h:153: error: with 'int CSpecialItemGroup::GetGroupSize() const'
item_manager.h: In member function 'int CSpecialItemGroup::GetGroupSize() const':
item_manager.h:160: error: 'dwVnum' was not declared in this scope
Mersi mult
Avatar utilizator
hware82
Nivel 2

Nivel 2
Mesaje: 203
Membru din: 05 Iun 2018, 13:18
Server: In lucru
Regat: Jinno
Aprecieri: 36  
Mulţumiri: 11  
Medalii

ai asta?
vnum == dwVnum
Pentru acest mesaj, hware82 for the post:
Vladii
Avatar utilizator
Vladii
Utilizator interzis !

Utilizator interzis !
Mesaje: 402
Membru din: 03 Iun 2018, 18:33
Server: Arena2
Regat: Chunjo
Aprecieri: 230  
Mulţumiri: 252  
Discord: Copiază ID
 Contact:
Medalii

hware82 scrie:ai asta?
vnum == dwVnum
E cum ai zis tu ... altcineva care ma poate ajuta?
Avatar utilizator
notSomeoneSpecial
Nou Venit

Nou Venit
Mesaje: 5
Membru din: 02 Ian 2019, 23:39
Aprecieri: 0
Mulţumiri: 0
Medalii

Treaba cu "cant be overloaded" e pentru ca nu poti si sa declari si sa definesti o functie in clasa.
Avatar utilizator
Vladii
Utilizator interzis !

Utilizator interzis !
Mesaje: 402
Membru din: 03 Iun 2018, 18:33
Server: Arena2
Regat: Chunjo
Aprecieri: 230  
Mulţumiri: 252  
Discord: Copiază ID
 Contact:
Medalii

notSomeoneSpecial scrie:Treaba cu "cant be overloaded" e pentru ca nu poti si sa declari si sa definesti o functie in clasa.
daca stii mai multe explica-mi mai detaliat.
Avatar utilizator
notSomeoneSpecial
Nou Venit

Nou Venit
Mesaje: 5
Membru din: 02 Ian 2019, 23:39
Aprecieri: 0
Mulţumiri: 0
Medalii

Intr-o clasa, in momentul actual CSpecialItemGroup, functie aceea de dupa " :: " este si definita (ex: int NumeFunctie() )
si este si initializata cu ceva instructiuni (ex: int NumeFunctie { INSTRUCTIUNI } ) tot in clasa. Imi scapa alti termeni.
Avatar utilizator
hware82
Nivel 2

Nivel 2
Mesaje: 203
Membru din: 05 Iun 2018, 13:18
Server: In lucru
Regat: Jinno
Aprecieri: 36  
Mulţumiri: 11  
Medalii

De ce nu urci tu item_manager.h undeva si lasa link aici?
Avatar utilizator
Vladii
Utilizator interzis !

Utilizator interzis !
Mesaje: 402
Membru din: 03 Iun 2018, 18:33
Server: Arena2
Regat: Chunjo
Aprecieri: 230  
Mulţumiri: 252  
Discord: Copiază ID
 Contact:
Medalii

hware82 scrie:De ce nu urci tu item_manager.h undeva si lasa link aici?
Salut, uite aici
Închis
Răspunsuri
8
Vizualizări
477
Răspunsuri
6
Vizualizări
179
Răspunsuri
3
Vizualizări
398
Răspunsuri
9
Vizualizări
456

Înapoi la “Probleme rezolvate”

  • Informaţie