• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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