Problema implementare Offline Shop

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Avatar utilizator
waLkerWEED
Nivel 1

Nivel 1
Mesaje: 91
Membru din: 12 Sep 2017, 01:14
Server: In lucru
Regat: Jinno
Aprecieri: 24  
Mulţumiri: 8  
Discord: Copiază ID
Medalii

*Problemă/Întrebare: Eroare la compilarea sursei game
Tipologie server: PVM
*Resursă folosită: offline shop by great sursa/offline-shop-great-fix-cumparare-t77358.html
*ServerFiles utilizat: goanga

*Detalii suplimentare: La compilarea sursei game primesc o gramada de erori, sincer m-am pierdut in ele ... 8-}

Cod: Selectaţi tot

In file included from ani.cpp:11:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
compile building.cpp
gmake: *** [obj/ani.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from arena.cpp:9:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
In file included from BattleArena.cpp:6:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
In file included from OXEvent.cpp:9:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
gmake: *** [obj/arena.o] Error 1
In file included from battle.cpp:5:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
gmake: *** [obj/BattleArena.o] Error 1
gmake: *** [obj/OXEvent.o] Error 1
gmake: *** [obj/battle.o] Error 1
In file included from building.cpp:8:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
gmake: *** [obj/building.o] Error 1
Inteleg ca ceva e in neregula in char.h as aprecia daca cineva ar putea sa ma ajute, tot odata sa imi explice si rezolvarea astfel incat daca mai intelnesc probleme de genul pe viitor sa nu imi mai prind urechiele in ele (daca se poate) .

Am atasat acestui mesaj si fisierul char.h .
Multumesc anticipat!

Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.
Afișează semnătura
Avatar utilizator
Ionuţ M.
Metin Master

Metin Master
Mesaje: 2680
Membru din: 28 Noi 2015, 22:02
Aprecieri: 170  
Mulţumiri: 12723  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

Du te in char.h cauta

};

ESex GET_SEX(LPCHARACTER ch);

Adauga deasupra la

};

Uite aici modificat de mine
Imagine
Afișează semnătura
Avatar utilizator
waLkerWEED
Nivel 1

Nivel 1
Mesaje: 91
Membru din: 12 Sep 2017, 01:14
Server: In lucru
Regat: Jinno
Aprecieri: 24  
Mulţumiri: 8  
Discord: Copiază ID
Medalii

Dupa adaugarea }; primesc urmatoarele erori:

Cod: Selectaţi tot

In file included from BattleArena.cpp:6:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
compile building.cpp
compile castle.cpp
char.h:2117: error: expected unqualified-id before 'public'
char.h:2124: error: expected declaration before '}' token
gmake: *** [obj/BattleArena.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from battle.cpp:5:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
char.h:2124: error: expected declaration before '}' token
gmake: *** [obj/battle.o] Error 1
In file included from castle.cpp:21:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
char.h:2124: error: expected declaration before '}' token
gmake: *** [obj/castle.o] Error 1
In file included from arena.cpp:9:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
char.h:2124: error: expected declaration before '}' token
In file included from ani.cpp:11:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
char.h:2124: error: expected declaration before '}' token
gmake: *** [obj/ani.o] Error 1
gmake: *** [obj/arena.o] Error 1
In file included from building.cpp:8:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
char.h:2124: error: expected declaration before '}' token
gmake: *** [obj/building.o] Error 1
In file included from OXEvent.cpp:9:
char.h:2080: error: expected unqualified-id before 'public'
char.h: In function 'void SetPrivShop(DWORD)':
char.h:2084: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2085: error: non-member function 'BOOL IsPrivShop()' cannot have cv-qualifier
char.h: In function 'BOOL IsPrivShop()':
char.h:2085: error: 'bprivShop' was not declared in this scope
char.h: At global scope:
char.h:2086: error: non-member function 'DWORD GetPrivShop()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShop()':
char.h:2086: error: 'bprivShop' was not declared in this scope
char.h: In function 'void SetPrivShopOwner(DWORD)':
char.h:2087: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2088: error: non-member function 'DWORD GetPrivShopOwner()' cannot have cv-qualifier
char.h: In function 'DWORD GetPrivShopOwner()':
char.h:2088: error: 'bprivShopOwner' was not declared in this scope
char.h: At global scope:
char.h:2090: error: non-member function 'DWORD GetShopTime()' cannot have cv-qualifier
char.h: In function 'DWORD GetShopTime()':
char.h:2090: error: 'dw_ShopTime' was not declared in this scope
char.h: In function 'void SetShopTime(DWORD)':
char.h:2091: error: 'dw_ShopTime' was not declared in this scope
char.h: At global scope:
char.h:2099: error: expected unqualified-id before 'private'
char.h:2104: error: expected unqualified-id before 'public'
char.h:2106: error: expected unqualified-id before 'protected'
char.h:2111: error: expected unqualified-id before 'protected'
char.h:2117: error: expected unqualified-id before 'public'
char.h:2124: error: expected declaration before '}' token
gmake: *** [obj/OXEvent.o] Error 1
Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.
Afișează semnătura
Avatar utilizator
Moț
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 2825
Membru din: 03 Apr 2017, 15:00
Aprecieri: 216  
Mulţumiri: 3040  
Discord: Copiază ID
Medalii

nici cu tutorial nu sunteti in stare sa adaugi un shit de sistem?
vezi ca ai pus tot inafara clasei
Imagine
Afișează semnătura
Avatar utilizator
waLkerWEED
Nivel 1

Nivel 1
Mesaje: 91
Membru din: 12 Sep 2017, 01:14
Server: In lucru
Regat: Jinno
Aprecieri: 24  
Mulţumiri: 8  
Discord: Copiază ID
Medalii

Moț scrie: ↑23 Ian 2020, 19:32 nici cu tutorial nu sunteti in stare sa adaugi un shit de sistem?
vezi ca ai pus tot inafara clasei
Sunt incepator si mai fac greseli... am rezolvat problema aia acum altele ...

Update:

Eroare input_db.cpp
Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.
Afișează semnătura
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

input_db.cpp:2158: error: redefinition of 'void CInputDB::Boot(const char*)'
input_db.cpp:455: error: 'void CInputDB::Boot(const char*)' previously defined here

Eroarea vine de la faptul ca acel void este deja definit.
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
waLkerWEED
Nivel 1

Nivel 1
Mesaje: 91
Membru din: 12 Sep 2017, 01:14
Server: In lucru
Regat: Jinno
Aprecieri: 24  
Mulţumiri: 8  
Discord: Copiază ID
Medalii

[RaffaeL] scrie: ↑23 Ian 2020, 21:47 input_db.cpp:2158: error: redefinition of 'void CInputDB::Boot(const char*)'
input_db.cpp:455: error: 'void CInputDB::Boot(const char*)' previously defined here

Eroarea vine de la faptul ca acel void este deja definit.
Multumesc frumos!
Intradevar acea functie era de 2 ori, am facut din 2 una ca sa zic asa ... #:-s

Cod: Selectaţi tot

compile locale.cpp
input_db.cpp: In member function 'void CInputDB::Boot(const char*)':
input_db.cpp:966: error: 'CreateShops' was not declared in this scope
input_db.cpp: In function 'long int shop_event(LPEVENT, long int)':
input_db.cpp:2038: warning: comparison between signed and unsigned integer expressions
input_db.cpp:2025: warning: unused variable 'pc'
input_db.cpp: In function 'void CreateShops()':
input_db.cpp:2138: warning: unused variable 'vid'
input_db.cpp: In member function 'void CInputDB::ShopClose(const char*)':
input_db.cpp:2184: warning: unused variable 'pc'
input_db.cpp: In member function 'void CInputDB::ShopName(const char*)':
input_db.cpp:2207: warning: unused variable 'pc'
input_db.cpp: In member function 'void CInputDB::ShopUpdateItem(const char*)':
input_db.cpp:2232: warning: unused variable 'pc'
compile locale_service.cpp
compile log.cpp
gmake: *** [obj/input_db.o] Error 1
gmake: *** Waiting for unfinished jobs....
locale_service.cpp: In function 'void __CheckPlayerSlot(const std::string&)':
locale_service.cpp:114: warning: format '%d' expects type 'int', but argument 2 has type 'long long int'
Cum fac sa declar CreateShops ? Sau mai exact ce ar trebui sa fac :-$

Greseala cred ca este unde am adaugat eu functia, am atasat mai joc functia.

Cod: Selectaţi tot

https://pastebin.com/bpV3FygY
Ultima oară modificat 23 Ian 2020, 23:54 de către waLkerWEED, modificat 1 dată în total.
Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.
Afișează semnătura
Avatar utilizator
Cortex
Nivel 1

Nivel 1
Mesaje: 99
Membru din: 31 Aug 2018, 14:59
Server: 10%
Aprecieri: 83  
Mulţumiri: 260  
Medalii

Functia ta e cumva asa?
void CInputDB::Boot(const char* data)
{

	CMotionManager::instance().Build();
	
	#ifdef OFFLINE_SHOP
	CreateShops();
	#endif
}
Avatar utilizator
waLkerWEED
Nivel 1

Nivel 1
Mesaje: 91
Membru din: 12 Sep 2017, 01:14
Server: In lucru
Regat: Jinno
Aprecieri: 24  
Mulţumiri: 8  
Discord: Copiază ID
Medalii

Cortex scrie: ↑23 Ian 2020, 23:52 Functia ta e cumva asa?
void CInputDB::Boot(const char* data)
{

	CMotionManager::instance().Build();
	
	#ifdef OFFLINE_SHOP
	CreateShops();
	#endif
}
Am functia aia de 2 ori, iar ce ai pus tu am bagat in functia mare...
Daca nu e de ajuns pot adauga fisierul complet sa se inteleaga mai bine.
Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.
Afișează semnătura
Avatar utilizator
Cortex
Nivel 1

Nivel 1
Mesaje: 99
Membru din: 31 Aug 2018, 14:59
Server: 10%
Aprecieri: 83  
Mulţumiri: 260  
Medalii

Posteaza-l.
Închis
Răspunsuri
2
Vizualizări
119
Răspunsuri
13
Vizualizări
692
Răspunsuri
3
Vizualizări
486
Răspunsuri
3
Vizualizări
231

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 75 vizitatori