Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Compile Error! HELP ME PLEASE!

Newbie Spellweaver
Joined
May 3, 2014
Messages
29
Reaction score
0
DPSrvr.cpp(279) : error C2065: 'OnEnchant' : undeclared identifier
DPSrvr.cpp(5648) : error C2039: 'OnEnchant' : is not a member of 'CDPSrvr'
d:\FLYFFSERVERMAKING\V19FILES\Source\SRC\WORLDSERVER\DPSrvr.h(15) : see declaration of 'CDPSrvr'
DPSrvr.cpp(5649) : error C2365: 'OnEnchant' : redefinition; previous definition was a 'formerly unknown identifier'
 
Elite Diviner
Joined
Mar 12, 2009
Messages
487
Reaction score
67
DpSrvr.h
Code:
    void    OnEnchant( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize);

Make sure it's public and only defined once.

DpSrvr.cpp
Code:
    ON_MSG( PACKETTYPE_ENCHANT, OnEnchant );

void CDPSrvr::OnEnchant( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize)

Make sure it's defined right, and that you only define it once.

The error says you have a duplicate in one of the files, which is an unknown identifier. The source lines are taken from a v15 clean.
 
Back
Top