Jump to content

Sash Sistem Problem compile DB


Recommended Posts

Hi guys.. I have a problem with DB.. I dont know why is not linking/compiling.. 

This is: 

ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)':
ClientManagerPlayer.cpp:365: warning: address of local variable 'command' returned
ClientManagerPlayer.cpp: In member function 'void CClientManager::__QUERY_PLAYER_CREATE(CPeer*, DWORD                                                                                                                                        , TPlayerCreatePacket*)':
ClientManagerPlayer.cpp:843: error: 'struct TSimplePlayer' has no member named 'byLevel'
ClientManagerPlayer.cpp:845: error: 'struct TSimplePlayer' has no member named 'byST'
ClientManagerPlayer.cpp:846: error: 'struct TSimplePlayer' has no member named 'byHT'
ClientManagerPlayer.cpp:847: error: 'struct TSimplePlayer' has no member named 'byDX'
ClientManagerPlayer.cpp:848: error: 'struct TSimplePlayer' has no member named 'byIQ'
compile ClientManagerEventFlag.cpp
compile Marriage.cpp
compile Monarch.cpp
compile BlockCountry.cpp
gmake: *** [.obj/ClientManagerPlayer.o] Error 1
gmake: *** Waiting for unfinished jobs....
ClientManagerLogin.cpp: In function 'void CreateAccountPlayerDataFromRes(MYSQL_RES*, TAccountTable*)'                                                                                                                                        :
ClientManagerLogin.cpp:297: error: 'struct TSimplePlayer' has no member named 'byLevel'
ClientManagerLogin.cpp:299: error: 'struct TSimplePlayer' has no member named 'byST'
ClientManagerLogin.cpp:300: error: 'struct TSimplePlayer' has no member named 'byHT'
ClientManagerLogin.cpp:301: error: 'struct TSimplePlayer' has no member named 'byDX'
ClientManagerLogin.cpp:302: error: 'struct TSimplePlayer' has no member named 'byIQ'
ClientManagerLogin.cpp:319: error: 'struct TSimplePlayer' has no member named 'byLevel'
ClientManagerLogin.cpp:321: error: 'struct TSimplePlayer' has no member named 'byST'
ClientManagerLogin.cpp:322: error: 'struct TSimplePlayer' has no member named 'byHT'
ClientManagerLogin.cpp:323: error: 'struct TSimplePlayer' has no member named 'byDX'
ClientManagerLogin.cpp:324: error: 'struct TSimplePlayer' has no member named 'byIQ'
ClientManagerLogin.cpp:333: error: 'struct TSimplePlayer' has no member named 'byLevel'
ClientManagerLogin.cpp:335: error: 'struct TSimplePlayer' has no member named 'byST'
ClientManagerLogin.cpp:336: error: 'struct TSimplePlayer' has no member named 'byHT'
ClientManagerLogin.cpp:337: error: 'struct TSimplePlayer' has no member named 'byDX'
ClientManagerLogin.cpp:338: error: 'struct TSimplePlayer' has no member named 'byIQ'
gmake: *** [.obj/ClientManagerLogin.o] Error 1

My ClientManagerLogin.cpp and ClientManagerPlayer.cpp :D I hope you know how to make it works :D 

This is the hidden content, please

This is the hidden content, please

  • Metin2 Dev 1
Link to comment
Share on other sites

  • Premium
9 minutes ago, Diggle said:

http://pastebin.com/kThd69yk -ClientManagerLogin
http://pastebin.com/eDVQvFYM - Client ManagerPlayer 
Help me please :D 

Pastebin your tables.h

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
16 minutes ago, Diggle said:
WORD        wST, wHT, wDX, wIQ;

Why?

Change to:

WORD        byST, byHT, byDX, byIQ;

 

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

4 minutes ago, Syreldar said:

WORD        wST, wHT, wDX, wIQ;

Why?

Change to:


WORD        byST, byHT, byDX, byIQ;

 

... I solved the first one.. now??
 

Spoiler

ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(ch                                                                                                                                                             ar*)':
ClientManagerPlayer.cpp:365: warning: address of local variable 'command' return                                                                                                                                                             ed
ClientManagerPlayer.cpp: In member function 'void CClientManager::__QUERY_PLAYER                                                                                                                                                             _CREATE(CPeer*, DWORD, TPlayerCreatePacket*)':
ClientManagerPlayer.cpp:843: error: 'struct TSimplePlayer' has no member named '                                                                                                                                                             byLevel'
ClientManagerLogin.cpp: In function 'void CreateAccountPlayerDataFromRes(MYSQL_R                                                                                                                                                             ES*, TAccountTable*)':
ClientManagerLogin.cpp:297: error: 'struct TSimplePlayer' has no member named 'b                                                                                                                                                             yLevel'
ClientManagerLogin.cpp:319: error: 'struct TSimplePlayer' has no member named 'b                                                                                                                                                             yLevel'
ClientManagerLogin.cpp:333: error: 'struct TSimplePlayer' has no member named 'b                                                                                                                                                             yLevel'
gmake: *** [.obj/ClientManagerLogin.o] Error 1
gmake: *** Waiting for unfinished jobs....

 

Link to comment
Share on other sites

  • Premium
WORD        wLevel;

...

WORD        byLevel;

 

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium

no problem.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

14 minutes ago, Syreldar said:

no problem.

I dont know what is wrong with this lines... but idk.. maybe you can help me :D 

e91ww7

If u dont see the image: https://metin2.download/picture/65qlcmomFDQrpgvlG6ixSKsb4gZRL0MY/.png
http://pastebin.com/LRTFciTR -InstanceBase.cpp
http://pastebin.com/B6jgUrQF - ActorInstanceData.cpp

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

InstanceBase.cpp:

if (item->GetType(() == CItemData::ITEM_TYPE_COSTUME && item->GetSubType() == CItemData::COSTUME_ACCE);

to:

//         if (item->GetType(() == CItemData::ITEM_TYPE_COSTUME && item->GetSubType() == CItemData::COSTUME_ACCE);

 

ActorInstanceData.cpp:

CRaceData::PART_ACCE or pkAcceThing are missing, make sure you have them.

same thing for the rest of the errors, things are simply missing.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

9 minutes ago, Syreldar said:

InstanceBase.cpp:


if (item->GetType(() == CItemData::ITEM_TYPE_COSTUME && item->GetSubType() == CItemData::COSTUME_ACCE);

to:


//         if (item->GetType(() == CItemData::ITEM_TYPE_COSTUME && item->GetSubType() == CItemData::COSTUME_ACCE);

 

ActorInstanceData.cpp:

CRaceData::PART_ACCE or pkAcceThing are missing, make sure you have them.

same thing for the rest of the errors, things are simply missing.

Sry.. But i dont know... This tutorial works perfectly last year... With the same Source.. Vs 2013.. Before to install Sash Sistem i can compile without any errors.. 
Look Release-Rebuild... 
http://pastebin.com/hHdqCLYX

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.