Pls Stats \n ? I Dont Understand U
Printable View
Pls Stats \n ? I Dont Understand U
Edit: Nervermind, got it working. :)
i didnt understood the first step...
what to do with the search function?
and where to put commandHandler?
i copied the old players.cpp so...
er
You replace the void Players::searchPlayer function with whats in pastebin. Btw thanks for this, works good :D
Using REV 0.0.8
Code:------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
Compiling...
Initializing.cpp
ServerPacket.cpp
PlayersPacket.cpp
DropsPacket.cpp
Shops.cpp
Players.cpp
.\Players.cpp(559) : error C2079: 'packet2' uses undefined class 'Packet'
.\Players.cpp(559) : error C2514: 'Packet' : class has no constructors
c:\documents and settings\daddystrikes\desktop\msserver\titanmsver008\maplestoryserver\maplestoryserver\PlayersPacket.h(5) : see declaration of 'Packet'
.\Players.cpp(560) : error C2228: left of '.addHeader' must have class/struct/union
type is 'int'
.\Players.cpp(561) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(565) : error C2079: 'packett' uses undefined class 'Packet'
.\Players.cpp(565) : error C2514: 'Packet' : class has no constructors
c:\documents and settings\daddystrikes\desktop\msserver\titanmsver008\maplestoryserver\maplestoryserver\PlayersPacket.h(5) : see declaration of 'Packet'
.\Players.cpp(567) : error C2228: left of '.addHeader' must have class/struct/union
type is 'int'
.\Players.cpp(568) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(569) : error C2228: left of '.addShort' must have class/struct/union
type is 'int'
.\Players.cpp(570) : error C2228: left of '.addString' must have class/struct/union
type is 'int'
.\Players.cpp(571) : error C2228: left of '.addShort' must have class/struct/union
type is 'int'
.\Players.cpp(572) : error C2228: left of '.addShort' must have class/struct/union
type is 'int'
.\Players.cpp(573) : error C2228: left of '.addString' must have class/struct/union
type is 'int'
.\Players.cpp(574) : error C2228: left of '.packetSend' must have class/struct/union
type is 'int'
.\Players.cpp(576) : error C2228: left of '.addShort' must have class/struct/union
type is 'int'
.\Players.cpp(577) : error C2228: left of '.addString' must have class/struct/union
type is 'int'
.\Players.cpp(578) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(588) : error C2228: left of '.addShort' must have class/struct/union
type is 'int'
.\Players.cpp(589) : error C2228: left of '.addString' must have class/struct/union
type is 'int'
.\Players.cpp(590) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(593) : error C2228: left of '.packetSend' must have class/struct/union
type is 'int'
.\Players.cpp(603) : error C2079: 'packet2' uses undefined class 'Packet'
.\Players.cpp(603) : error C2514: 'Packet' : class has no constructors
c:\documents and settings\daddystrikes\desktop\msserver\titanmsver008\maplestoryserver\maplestoryserver\PlayersPacket.h(5) : see declaration of 'Packet'
.\Players.cpp(604) : error C2228: left of '.addHeader' must have class/struct/union
type is 'int'
.\Players.cpp(608) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(609) : error C2228: left of '.addShort' must have class/struct/union
type is 'int'
.\Players.cpp(610) : error C2228: left of '.addString' must have class/struct/union
type is 'int'
.\Players.cpp(611) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(612) : error C2228: left of '.addInt' must have class/struct/union
type is 'int'
.\Players.cpp(613) : error C2228: left of '.addInt' must have class/struct/union
type is 'int'
.\Players.cpp(614) : error C2228: left of '.addInt' must have class/struct/union
type is 'int'
.\Players.cpp(622) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(623) : error C2228: left of '.addShort' must have class/struct/union
type is 'int'
.\Players.cpp(624) : error C2228: left of '.addString' must have class/struct/union
type is 'int'
.\Players.cpp(625) : error C2228: left of '.addByte' must have class/struct/union
type is 'int'
.\Players.cpp(628) : error C2228: left of '.packetSend' must have class/struct/union
type is 'int'
Player.cpp
Mobs.cpp
Maps.cpp
Inventory.cpp
Drops.cpp
MapleStoryServer.cpp
Build log was saved at "file://c:\Documents and Settings\DaddyStrikes\Desktop\MSserver\TitanMSVer008\MapleStoryServer\MapleStoryServer\Release\BuildLog.htm"
MapleStoryServer - 36 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
ok after Deleting and reversing all what u did i get 14 errors :D
yea thanks :D but i did it all again (added that code in pastebin and so on) and still get these errors
Code:------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
Linking...
MapleStoryServer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Player::handleRequest(unsigned char *,int)" (?handleRequest@Player@@UAEXPAEH@Z)
MapleStoryServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::save(void)" (?save@Player@@QAEXXZ)
MapleStoryServer.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall Player::~Player(void)" (??1Player@@UAE@XZ)
Inventory.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setMP(int,bool)" (?setMP@Player@@QAEXH_N@Z)
Inventory.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setHP(int,bool)" (?setHP@Player@@QAEXH_N@Z)
Levels.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setExp(int,bool)" (?setExp@Player@@QAEXH_N@Z)
Levels.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setSp(short)" (?setSp@Player@@QAEXF@Z)
Levels.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setJob(short)" (?setJob@Player@@QAEXF@Z)
Levels.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setLevel(int)" (?setLevel@Player@@QAEXH@Z)
Mobs.obj : error LNK2001: unresolved external symbol "int __cdecl distPos(struct Pos,struct Pos)" (?distPos@@YAHUPos@@0@Z)
NPCs.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setHair(int)" (?setHair@Player@@QAEXH@Z)
NPCs.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setEyes(int)" (?setEyes@Player@@QAEXH@Z)
NPCs.obj : error LNK2001: unresolved external symbol "public: void __thiscall Player::setSkin(char)" (?setSkin@Player@@QAEXD@Z)
C:\Documents and Settings\DaddyStrikes\Desktop\MSserver\TitanMSVer008\MapleStoryServer\Release\MapleStoryServer.exe : fatal error LNK1120: 13 unresolved externals
Build log was saved at "file://c:\Documents and Settings\DaddyStrikes\Desktop\MSserver\TitanMSVer008\MapleStoryServer\MapleStoryServer\Release\BuildLog.htm"
MapleStoryServer - 14 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
i also get that error,can help?
i saw som1 asnwered in to this thread and thoughy allready u had a good answer for my error :D
Works fine.
Compiled fine, now to test.
EDIT: Works fine, but it has that bug still where everyone name go lowercase.
Code:2>Compiling...
2>Player.cpp
2>Players.cpp
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.cpp(62) : warning C4804: '>' : unsafe use of type 'bool' in operation
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.cpp(274) : error C2143: syntax error : missing ';' before 'Players::commandHandler'
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.cpp(274) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.cpp(274) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.cpp(274) : error C2556: 'int Players::commandHandler(Player *,unsigned char *)' : overloaded function differs only by return type from 'void Players::commandHandler(Player *,unsigned char *)'
2> c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.h(23) : see declaration of 'Players::commandHandler'
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.cpp(274) : error C2371: 'Players::commandHandler' : redefinition; different basic types
2> c:\users\krishan\documents\private server stuff\008\maplestoryserver\players.h(23) : see declaration of 'Players::commandHandler'
2>LoginPacket.cpp
2>MapleIsland.cpp
2>Generating Code...
2>Compiling...
2>Drops.cpp
2>Maps.cpp
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\maps.cpp(60) : warning C4804: '>' : unsafe use of type 'bool' in operation
2>c:\users\krishan\documents\private server stuff\008\maplestoryserver\maps.cpp(69) : warning C4804: '>' : unsafe use of type 'bool' in operation
2>PlayersPacket.cpp
2>ServerPacket.cpp
2>Generating Code...
2>Skipping... (no relevant changes detected)
2>Inventory.cpp
2>Mobs.cpp
2>Shops.cpp
2>DropsPacket.cpp
2>Initializing.cpp
2>TeleportNPCs.cpp
2>JobNPCs.cpp
2>Build log was saved at "file://c:\Users\Krishan\Documents\Private Server Stuff\008\MapleStoryServer\Debug\BuildLog.htm"
2>MapleStoryServer - 5 error(s), 3 warning(s)
Works fine.