Mornin folks,
Been trying to implement a function I found, and I thought I had it all under control untill the final compile. If I uncomment either of the two lines in this following chunk of code I start getting the link errors in the quote box.
Anybody else seen these errors before? I'm just accessing a CNetworkVar for gods sake o.O
I know I can do this another way if this fails because they're both network vars but this would save alot of hastle (if the vtables line up that is!).
Code:
CVGuiScreen *UTIL_CreateVGuiScreen( const char *pScreenClassname, const char *pScreenType, CBaseEntity *pAttachedTo, CBaseEntity *pOwner, int nAttachmentIndex )
{
CVGuiScreen *pScreen = ( CVGuiScreen * )g_CreateEntityByName( pScreenClassname, -1 );
CBaseAnimating_Teleport( pScreen, &vec3_origin, &vec3_angle, &vec3_origin );
//pScreen->m_nPanelName = g_ZombiePlugin.SetStringTable( "VguiScreen", pScreenType );
CBaseEntity_SetParent( pScreen, pAttachedTo );
CBaseEntity_SetOwnerEntity( pScreen, pOwner );
//pScreen->m_nAttachmentIndex = nAttachmentIndex;
return pScreen;
}
Quote:
1>ZM_Util.obj : error LNK2001: unresolved external symbol "class CSharedEdictChangeInfo * g_pSharedChangeInfo" (?g_pSharedChangeInfo@@3PAVCSharedEdictChange Info@@A)
1>ZM_Util.obj : error LNK2019: unresolved external symbol "public: class IChangeInfoAccessor * __thiscall CBaseEdict::GetChangeAccessor(void)" (?GetChangeAccessor@CBaseEdict@@QAEPAVIChange InfoAccessor@@XZ) referenced in function "public: void __thiscall CBaseEdict::StateChanged(unsigned short)" (?StateChanged@CBaseEdict@@QAEXG@Z)
|
__________________