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 kompilacja source


Rekomendowane odpowiedzi

Opublikowano

Pomoże ktoś ?



In file included from BattleArena.cpp:6:
char.h:378: error: expected unqualified-id before '{' token
char.h:397: error: declaration does not declare anything
gmake: *** [OBJDIR/BattleArena.o] Bł±d 1
gmake: *** Oczekiwanie na niezakończone zadania....
In file included from OXEvent.cpp:9:
char.h:378: error: expected unqualified-id before '{' token
char.h:397: error: declaration does not declare anything
gmake: *** [OBJDIR/OXEvent.o] Bł±d 1

char.h http://wklej.org/id/3079759/


wjub1h.jpg

Opublikowano

 

typedef struct character_point
{
    long long        points[POINT_MAX_NUM];

    BYTE            job;
    BYTE            voice;

    BYTE            level;
    DWORD            exp;
    long long        gold;

    int                hp;
    int                sp;

    int                iRandomHP;
    int                iRandomSP;

    int                stamina;

    BYTE            skill_group;
} CHARACTER_POINT;
long long        points[POINT_MAX_NUM];
{
    long            points[POINT_MAX_NUM];

    BYTE            job;
    BYTE            voice;

    BYTE            level;
    DWORD            exp;
    long long        gold;

    int                hp;
    int                sp;

    int                iRandomHP;
    int                iRandomSP;

    int                stamina;

    BYTE            skill_group;
} CHARACTER_POINT;

 

na

 

typedef struct character_point
{
long long points[POINT_MAX_NUM];
 
BYTE job;
BYTE voice;
 
BYTE level;
DWORD exp;
long long gold;
 
int hp;
int sp;
 
int iRandomHP;
int iRandomSP;
 
int stamina;
 
BYTE skill_group;
} CHARACTER_POINT;
Opublikowano
typedef struct character_point
{
    long long        points[POINT_MAX_NUM];

    BYTE            job;
    BYTE            voice;

    BYTE            level;
    DWORD            exp;
    long long        gold;

    int                hp;
    int                sp;

    int                iRandomHP;
    int                iRandomSP;

    int                stamina;

    BYTE            skill_group;
} CHARACTER_POINT;
long long        points[POINT_MAX_NUM];
{
    long            points[POINT_MAX_NUM];

    BYTE            job;
    BYTE            voice;

    BYTE            level;
    DWORD            exp;
    long long        gold;

    int                hp;
    int                sp;

    int                iRandomHP;
    int                iRandomSP;

    int                stamina;

    BYTE            skill_group;
} CHARACTER_POINT;

na

typedef struct character_point
{
long long points[POINT_MAX_NUM];
 
BYTE job;
BYTE voice;
 
BYTE level;
DWORD exp;
long long gold;
 
int hp;
int sp;
 
int iRandomHP;
int iRandomSP;
 
int stamina;
 
BYTE skill_group;
} CHARACTER_POINT;

Teraz jest tak @Exemir.eu

 

In file included from char.cpp:4:
../../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:163:31: warning: no newline at end of file
char.cpp:7210: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7218:2: 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
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_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_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:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2395: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2411: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2438: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2446: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5093: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5165: warning: unused variable 'wDestCell'
char_item.cpp:5166: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::DropItem(TItemPos, short int)':
char_item.cpp:5383: warning: comparison between signed and unsigned integer expressions
char_item.cpp:5390: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::MoveItem(TItemPos, TItemPos, short int)':
char_item.cpp:5523: warning: comparison between signed and unsigned integer expressions
char_item.cpp:5615: warning: comparison between signed and unsigned integer expressions
char_item.cpp:5626: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6166: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6230: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6242: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7428: warning: unused variable 'itemType'
char_item.cpp:7429: warning: unused variable 'itemSubType'
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
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
In file included from PetSystem.cpp:8:
PetSystem.h:163: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
char_skill.cpp: In member function 'void CHARACTER::SkillLevelPacket()':
char_skill.cpp:163: error: 'TPacketGCSkillLevel' was not declared in this scope
char_skill.cpp:163: error: expected `;' before 'pack'
char_skill.cpp:165: error: 'pack' was not declared in this scope
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_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
gmake: *** [OBJDIR/char_skill.o] Bł±d 1
gmake: *** Oczekiwanie na niezakończone zadania....
In file included from cmd_general.cpp:36:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6277: warning: 'pBuff' may be used uninitialized in this function
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_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
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

wjub1h.jpg

Opublikowano

Teraz wstaw zawartość pliku char_skill.cpp

Dobre myślenie! brawo ;)

 

 

Teraz wstaw zawartość pliku char_skill.cpp

http://wklej.org/id/3080101/

 

Dzięki, przydało się!

 

Czegoś ci brakuje pokaż plik packet.h z game/src.

I pierd**isz głupoty, zobacz wyżej jak byk jest napisane:

 

char_skill.cpp: In member function 'void CHARACTER::SkillLevelPacket()':
char_skill.cpp:163: error: 'TPacketGCSkillLevel' was not declared in this scope
char_skill.cpp:163: error: expected `;' before 'pack'
char_skill.cpp:165: error: 'pack' was not declared in this scope




gmake: *** [OBJDIR/char_skill.o] Bł±d 1
gmake: *** Oczekiwanie na niezakończone zadania.... 

I jak byk masz tu widoczne, która linijka i gdzie leży error!

W tym wypadku brak deklaracji:

char_skill.cpp:163: error: 'TPacketGCSkillLevel' was not declared in this scope

 

Tak poza tym najlepiej zrobić swoje własne source od podstaw, niż korzystać z innych.

 

Deklarowana zawartość z char_skill jest w packet.h:

 

typedef struct packet_skill_level
{
	BYTE		bHeader;
	TPlayerSkill	skills[SKILL_MAX_NUM];
} TPacketGCSkillLevel;

Więc wejdź do pliku packet.h i zobacz czy na pewno masz taką deklarację w pliku, jaką ja dałem.

Tak poza tym, jak chcesz zrobić porządnie serwer, weź proszę odpal game, db i wszystkie liby w Visualu. Nie po to powstał Visual by z niego nie korzystać, tym bardziej powstał do edycji C++, C# i innych środowisk. 

Dla niekumatych: https://scr.hu/JNyBrA

Pomogłem ? klik up to Like ;D ( Lubię to ! ) xD

300 postów-> 10.10.2013 godz. 9:00
400 postów-> 19.10.2013 godz. 9:00

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...