Hey,
I am trying to create an entity in a server plugin (a weapon) in
counter-strike source, but am having trouble with some compile errors:
(These being the first 4)
d:\code\c++\*\src\dlls\baseentity.h(1502) : error C2061: syntax error :
identifier 'm_hMoveParent'
d:\code\c++\*\src\dlls\baseentity.h(1502) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
d:\code\c++\*\src\dlls\baseentity.h(1502) : warning C4183:
'CNetworkHandle': missing return type; assumed to be a member function
returning 'int'
d:\code\c++\*\src\dlls\baseentity.h(1513) : error C2061: syntax error :
identifier 'm_hOwnerEntity'
The code i am trying to use is:
CBaseEntity *pNewGun = CreateEntityByName( "weapon_deagle" );
pNewGun->SetAbsAngles(pPlayer->GetAbsAngles());
pNewGun->SetAbsOrigin(pPlayer->GetAbsOrigin());
pNewGun->Spawn();
I would use GiveNamedItem, but as i have found out from a couple of
sites that doesnt work in other mods than hl2mp.
I have included the baseentity.h, networkvar.h into my project but i
still get those errors (I also have incfluded the c++ files for those).
Any help?
Cheers.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders