more info after other errors:
Code:
plugintemplate/libs/lib_profiling.h:179:35: error: null character(s) ignored
plugintemplate/libs/lib_profiling.h:149: error: expected unqualified-id before ‘/’ token
plugintemplate/libs/lib_profiling.h:221: error: ‘e’ does not name a type
In file included from plugintemplate/includes/sufcommun.h:24,
from plugintemplate/includes/default.h:51,
from serverplugin_main.cpp:10:
plugintemplate/libs/lib_convar.h:37: error: variable ‘CConvarLib abstract’ has initializer but incomplete type
cc1plus: warnings being treated as errors
plugintemplate/libs/lib_convar.h:37: error: extended initializer lists only available with -std=c++0x or -std=gnu++0x
plugintemplate/libs/lib_convar.h:39: error: expected primary-expression before ‘public’
plugintemplate/libs/lib_convar.h:39: error: expected ‘}’ before ‘public’
plugintemplate/libs/lib_convar.h:39: error: expected ‘,’ or ‘;’ before ‘public’
plugintemplate/libs/lib_convar.h:41: error: expected constructor, destructor, or type conversion before ‘;’ token
plugintemplate/libs/lib_convar.h:58: error: ‘virtual’ outside class declaration
plugintemplate/libs/lib_convar.h:69: error: expected declaration before ‘}’ token
plugintemplate/libs/lib_message.h:31: error: ‘Say_TagColors’ defined but not used
plugintemplate/libs/lib_message.h:32: error: ‘Say_Colors’ defined but not used
make[1]: ** [bin/linux/Release.VSP.orangeboxvalve/serverplugin_main.o] Erro 1
make[1]: Saindo do diretório `/home/tiago/hl2sdk-ob-valve/utils/plugintemplate'
make: ** [all] Erro 2
tiago@tiago-laptop:~/hl2sdk-ob-valve/utils/plugintemplate$
lib_convar.h
Code:
#ifndef LIB_CONVAR_H
#define LIB_CONVAR_H
//========= Copyright © 2010-2011, Tiago Conceição, All rights reserved. ============
// Plugin Template
//
// Please Read (LICENSE.txt) and (README.txt)
// Dont Forget Visit:
// (http://www.sourceplugins.com) -> VPS Plugins
// (http://www.sourcemm.net) (http://forums.alliedmods.net/forumdisplay.php?f=52) - MMS Plugins
//
//===================================================================================
#define LIB_CONVAR_VERSION "1.0"
#define LIB_CONVAR_CLASS CConvarLib
#define PLUGIN_CONVAR0(name, defaultvalue) \
ConVar PLUGIN_CONVAR_PREFIX##name(""PLUGIN_CONVAR_NAME_PREFIX""#name"", defaultvalue, 0);
#define PLUGIN_CONVAR1(name, defaultvalue, flags) \
ConVar PLUGIN_CONVAR_PREFIX##name(""PLUGIN_CONVAR_NAME_PREFIX""#name"", defaultvalue, flags);
#define PLUGIN_CONVAR2(name, defaultvalue, flags, helpstring) \
ConVar PLUGIN_CONVAR_PREFIX##name(""PLUGIN_CONVAR_NAME_PREFIX""#name"", defaultvalue, flags, helpstring);
#define PLUGIN_CONVAR3(name, defaultvalue, flags, helpstring, bMin, fMin, bMax, fMax) \
ConVar PLUGIN_CONVAR_PREFIX##name(""PLUGIN_CONVAR_NAME_PREFIX""#name"", defaultvalue, flags, helpstring, bMin, fMin, bMax, fMax);
#define PLUGIN_CONVAR4(name, defaultvalue, flags, helpstring, callback) \
ConVar PLUGIN_CONVAR_PREFIX##name(""PLUGIN_CONVAR_NAME_PREFIX""#name"", defaultvalue, flags, helpstring, callback);
#define PLUGIN_CONVAR5(name, defaultvalue, flags, helpstring, bMin, fMin, bMax, fMax, callback) \
ConVar PLUGIN_CONVAR_PREFIX##name(""PLUGIN_CONVAR_NAME_PREFIX""#name"", defaultvalue, flags, helpstring, bMin, fMin, bMax, fMax, FnChangeCallback_t callback);
#define PLUGIN_EXTERN_CONVAR(name) extern ConVar PLUGIN_CONVAR_PREFIX##name;
#define PLUGIN_CONVAR(name) PLUGIN_CONVAR_PREFIX##name;
class LIB_CONVAR_CLASS abstract
{
public:
LIB_CONVAR_CLASS();
~LIB_CONVAR_CLASS();
// Find a ConVar and return it.
// NULL if doesn't exists.
ConVar *GetConvar(const char *name);
// Keep a ConVar in a list, to fast access
// i.e: sv_cheats
bool AddOutsideConvar(const char *name);
// Remove an convar from outside list.
bool RemoveOutsideConvar(const char *name);
// Get an convar from outside list.
ConVar *GetOutsideConvar(const char *name);
// Dump all variables to console
virtual void Print(bool dumpConvars = true, bool dumpConcommands = true);
// Collection of ConVars.
// Keep this for your plugin convars only
CUtlVector<ConVar*> convars;
// Collection of ConCommands.
// Keep this for your plugin convars only
CUtlVector<ConCommand*> concommands;
CUtlVector<ConVar *> outsideConvars;
};
#endif
Edit: abstract keyword not suported by gcc?
Edit2: after taking out words abstract and sealed it compiles more further but still cant compile first object, throwing many errors from SDK .h files.
gcc says treat warnings as errors, anyway to change that?
Edit3: i removed flag '-Werror' and it still not compiling
with errors:
Code:
../../game/server/playerlocaldata.h:42: warning: invalid access to non-static data member ‘CPlayerLocalData::m_flFOVRate’ of NULL object
../../game/server/playerlocaldata.h:42: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bDucked::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:47: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bDucked’ of NULL object
../../game/server/playerlocaldata.h:47: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bDucking::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:49: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bDucking’ of NULL object
../../game/server/playerlocaldata.h:49: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bInDuckJump::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:51: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bInDuckJump’ of NULL object
../../game/server/playerlocaldata.h:51: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_flDucktime::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:53: warning: invalid access to non-static data member ‘CPlayerLocalData::m_flDucktime’ of NULL object
../../game/server/playerlocaldata.h:53: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_flDuckJumpTime::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:54: warning: invalid access to non-static data member ‘CPlayerLocalData::m_flDuckJumpTime’ of NULL object
../../game/server/playerlocaldata.h:54: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_flJumpTime::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:56: warning: invalid access to non-static data member ‘CPlayerLocalData::m_flJumpTime’ of NULL object
../../game/server/playerlocaldata.h:56: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_flFallVelocity::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:60: warning: invalid access to non-static data member ‘CPlayerLocalData::m_flFallVelocity’ of NULL object
../../game/server/playerlocaldata.h:60: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_vecPunchAngle::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:67: warning: invalid access to non-static data member ‘CPlayerLocalData::m_vecPunchAngle’ of NULL object
../../game/server/playerlocaldata.h:67: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_vecPunchAngleVel::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:68: warning: invalid access to non-static data member ‘CPlayerLocalData::m_vecPunchAngleVel’ of NULL object
../../game/server/playerlocaldata.h:68: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bDrawViewmodel::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:70: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bDrawViewmodel’ of NULL object
../../game/server/playerlocaldata.h:70: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bWearingSuit::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:73: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bWearingSuit’ of NULL object
../../game/server/playerlocaldata.h:73: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bPoisoned::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:74: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bPoisoned’ of NULL object
../../game/server/playerlocaldata.h:74: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_flStepSize::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:75: warning: invalid access to non-static data member ‘CPlayerLocalData::m_flStepSize’ of NULL object
../../game/server/playerlocaldata.h:75: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bAllowAutoMovement::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:76: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bAllowAutoMovement’ of NULL object
../../game/server/playerlocaldata.h:76: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static int CPlayerLocalData::GetOffset_m_skybox3d()’:
../../game/server/playerlocaldata.h:79: warning: invalid access to non-static data member ‘CPlayerLocalData::m_skybox3d’ of NULL object
../../game/server/playerlocaldata.h:79: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static int CPlayerLocalData::GetOffset_m_PlayerFog()’:
../../game/server/playerlocaldata.h:81: warning: invalid access to non-static data member ‘CPlayerLocalData::m_PlayerFog’ of NULL object
../../game/server/playerlocaldata.h:81: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static int CPlayerLocalData::GetOffset_m_audio()’:
../../game/server/playerlocaldata.h:84: warning: invalid access to non-static data member ‘CPlayerLocalData::m_audio’ of NULL object
../../game/server/playerlocaldata.h:84: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/playerlocaldata.h: In static member function ‘static void CPlayerLocalData::NetworkVar_m_bSlowMovement::NetworkStateChanged(void*)’:
../../game/server/playerlocaldata.h:86: warning: invalid access to non-static data member ‘CPlayerLocalData::m_bSlowMovement’ of NULL object
../../game/server/playerlocaldata.h:86: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
In file included from ../../game/server/player.h:16,
from ../../game/shared/baseplayer_shared.h:63,
from ../../game/shared/baseviewmodel_shared.h:16,
from ../../game/shared/basecombatweapon_shared.h:17,
from ../../game/server/basecombatweapon.h:16,
from ../../game/server/cbase.h:143,
from plugintemplate/includes/cbaseentity.h:16,
from plugintemplate/includes/lotsofstuff.h:14,
from serverplugin_main.cpp:11:
../../public/PlayerState.h: In static member function ‘static void CPlayerState::NetworkVar_deadflag::NetworkStateChanged(void*)’:
../../public/PlayerState.h:32: warning: invalid access to non-static data member ‘CPlayerState::deadflag’ of NULL object
../../public/PlayerState.h:32: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
In file included from ../../game/shared/baseplayer_shared.h:63,
from ../../game/shared/baseviewmodel_shared.h:16,
from ../../game/shared/basecombatweapon_shared.h:17,
from ../../game/server/basecombatweapon.h:16,
from ../../game/server/cbase.h:143,
from plugintemplate/includes/cbaseentity.h:16,
from plugintemplate/includes/lotsofstuff.h:14,
from serverplugin_main.cpp:11:
../../game/server/player.h: In static member function ‘static int CBasePlayer::GetOffset_m_Local()’:
../../game/server/player.h:767: warning: invalid access to non-static data member ‘CBasePlayer::m_Local’ of NULL object
../../game/server/player.h:767: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static int CBasePlayer::GetOffset_pl()’:
../../game/server/player.h:777: warning: invalid access to non-static data member ‘CBasePlayer::pl’ of NULL object
../../game/server/player.h:777: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_fOnTarget::NetworkStateChanged(void*)’:
../../game/server/player.h:801: warning: invalid access to non-static data member ‘CBasePlayer::m_fOnTarget’ of NULL object
../../game/server/player.h:801: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_hUseEntity::NetworkStateChanged(void*)’:
../../game/server/player.h:840: warning: invalid access to non-static data member ‘CBasePlayer::m_hUseEntity’ of NULL object
../../game/server/player.h:840: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_hVehicle::NetworkStateChanged(void*)’:
../../game/server/player.h:848: warning: invalid access to non-static data member ‘CBasePlayer::m_hVehicle’ of NULL object
../../game/server/player.h:848: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_iBonusProgress::NetworkStateChanged(void*)’:
../../game/server/player.h:855: warning: invalid access to non-static data member ‘CBasePlayer::m_iBonusProgress’ of NULL object
../../game/server/player.h:855: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_iBonusChallenge::NetworkStateChanged(void*)’:
../../game/server/player.h:856: warning: invalid access to non-static data member ‘CBasePlayer::m_iBonusChallenge’ of NULL object
../../game/server/player.h:856: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_flDeathTime::NetworkStateChanged(void*)’:
../../game/server/player.h:866: warning: invalid access to non-static data member ‘CBasePlayer::m_flDeathTime’ of NULL object
../../game/server/player.h:866: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_iObserverMode::NetworkStateChanged(void*)’:
../../game/server/player.h:869: warning: invalid access to non-static data member ‘CBasePlayer::m_iObserverMode’ of NULL object
../../game/server/player.h:869: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_iFOV::NetworkStateChanged(void*)’:
../../game/server/player.h:870: warning: invalid access to non-static data member ‘CBasePlayer::m_iFOV’ of NULL object
../../game/server/player.h:870: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_iDefaultFOV::NetworkStateChanged(void*)’:
../../game/server/player.h:871: warning: invalid access to non-static data member ‘CBasePlayer::m_iDefaultFOV’ of NULL object
../../game/server/player.h:871: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_iFOVStart::NetworkStateChanged(void*)’:
../../game/server/player.h:872: warning: invalid access to non-static data member ‘CBasePlayer::m_iFOVStart’ of NULL object
../../game/server/player.h:872: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_flFOVTime::NetworkStateChanged(void*)’:
../../game/server/player.h:873: warning: invalid access to non-static data member ‘CBasePlayer::m_flFOVTime’ of NULL object
../../game/server/player.h:873: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_hObserverTarget::NetworkStateChanged(void*)’:
../../game/server/player.h:876: warning: invalid access to non-static data member ‘CBasePlayer::m_hObserverTarget’ of NULL object
../../game/server/player.h:876: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_hZoomOwner::NetworkStateChanged(void*)’:
../../game/server/player.h:879: warning: invalid access to non-static data member ‘CBasePlayer::m_hZoomOwner’ of NULL object
../../game/server/player.h:879: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_ArmorValue::NetworkStateChanged(void*)’:
../../game/server/player.h:966: warning: invalid access to non-static data member ‘CBasePlayer::m_ArmorValue’ of NULL object
../../game/server/player.h:966: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In member function ‘void CBasePlayer::NetworkVar_m_hViewModel::NetworkStateChanged(int)’:
../../game/server/player.h:977: warning: invalid access to non-static data member ‘CBasePlayer::m_hViewModel’ of NULL object
../../game/server/player.h:977: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_flMaxspeed::NetworkStateChanged(void*)’:
../../game/server/player.h:990: warning: invalid access to non-static data member ‘CBasePlayer::m_flMaxspeed’ of NULL object
../../game/server/player.h:990: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_nTickBase::NetworkStateChanged(void*)’:
../../game/server/player.h:1021: warning: invalid access to non-static data member ‘CBasePlayer::m_nTickBase’ of NULL object
../../game/server/player.h:1021: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_hLastWeapon::NetworkStateChanged(void*)’:
../../game/server/player.h:1026: warning: invalid access to non-static data member ‘CBasePlayer::m_hLastWeapon’ of NULL object
../../game/server/player.h:1026: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_hConstraintEntity::NetworkStateChanged(void*)’:
../../game/server/player.h:1040: warning: invalid access to non-static data member ‘CBasePlayer::m_hConstraintEntity’ of NULL object
../../game/server/player.h:1040: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_vecConstraintCenter::NetworkStateChanged(void*)’:
../../game/server/player.h:1041: warning: invalid access to non-static data member ‘CBasePlayer::m_vecConstraintCenter’ of NULL object
../../game/server/player.h:1041: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_flConstraintRadius::NetworkStateChanged(void*)’:
../../game/server/player.h:1042: warning: invalid access to non-static data member ‘CBasePlayer::m_flConstraintRadius’ of NULL object
../../game/server/player.h:1042: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_flConstraintWidth::NetworkStateChanged(void*)’:
../../game/server/player.h:1043: warning: invalid access to non-static data member ‘CBasePlayer::m_flConstraintWidth’ of NULL object
../../game/server/player.h:1043: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_flConstraintSpeedFactor::NetworkStateChanged(void*)’:
../../game/server/player.h:1044: warning: invalid access to non-static data member ‘CBasePlayer::m_flConstraintSpeedFactor’ of NULL object
../../game/server/player.h:1044: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_flLaggedMovementValue::NetworkStateChanged(void*)’:
../../game/server/player.h:1068: warning: invalid access to non-static data member ‘CBasePlayer::m_flLaggedMovementValue’ of NULL object
../../game/server/player.h:1068: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In member function ‘void CBasePlayer::NetworkVar_m_szLastPlaceName::NetworkStateChanged()’:
../../game/server/player.h:1084: warning: invalid access to non-static data member ‘CBasePlayer::m_szLastPlaceName’ of NULL object
../../game/server/player.h:1084: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/player.h: In static member function ‘static void CBasePlayer::NetworkVar_m_ubEFNoInterpParity::NetworkStateChanged(void*)’:
../../game/server/player.h:1098: warning: invalid access to non-static data member ‘CBasePlayer::m_ubEFNoInterpParity’ of NULL object
../../game/server/player.h:1098: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
In file included from ../../game/shared/basecombatweapon_shared.h:17,
from ../../game/server/basecombatweapon.h:16,
from ../../game/server/cbase.h:143,
from plugintemplate/includes/cbaseentity.h:16,
from plugintemplate/includes/lotsofstuff.h:14,
from serverplugin_main.cpp:11:
../../game/shared/baseviewmodel_shared.h: In static member function ‘static void CBaseViewModel::NetworkVar_m_nViewModelIndex::NetworkStateChanged(void*)’:
../../game/shared/baseviewmodel_shared.h:177: warning: invalid access to non-static data member ‘CBaseViewModel::m_nViewModelIndex’ of NULL object
../../game/shared/baseviewmodel_shared.h:177: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/baseviewmodel_shared.h: In static member function ‘static void CBaseViewModel::NetworkVar_m_hOwner::NetworkStateChanged(void*)’:
../../game/shared/baseviewmodel_shared.h:178: warning: invalid access to non-static data member ‘CBaseViewModel::m_hOwner’ of NULL object
../../game/shared/baseviewmodel_shared.h:178: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/baseviewmodel_shared.h: In static member function ‘static void CBaseViewModel::NetworkVar_m_nAnimationParity::NetworkStateChanged(void*)’:
../../game/shared/baseviewmodel_shared.h:186: warning: invalid access to non-static data member ‘CBaseViewModel::m_nAnimationParity’ of NULL object
../../game/shared/baseviewmodel_shared.h:186: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/baseviewmodel_shared.h: In static member function ‘static void CBaseViewModel::NetworkVar_m_hWeapon::NetworkStateChanged(void*)’:
../../game/shared/baseviewmodel_shared.h:198: warning: invalid access to non-static data member ‘CBaseViewModel::m_hWeapon’ of NULL object
../../game/shared/baseviewmodel_shared.h:198: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
In file included from ../../game/server/basecombatweapon.h:16,
from ../../game/server/cbase.h:143,
from plugintemplate/includes/cbaseentity.h:16,
from plugintemplate/includes/lotsofstuff.h:14,
from serverplugin_main.cpp:11:
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_hOwner::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:464: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_hOwner’ of NULL object
../../game/shared/basecombatweapon_shared.h:464: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_nViewModelIndex::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:471: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_nViewModelIndex’ of NULL object
../../game/shared/basecombatweapon_shared.h:471: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_flNextPrimaryAttack::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:474: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_flNextPrimaryAttack’ of NULL object
../../game/shared/basecombatweapon_shared.h:474: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_flNextSecondaryAttack::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:475: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_flNextSecondaryAttack’ of NULL object
../../game/shared/basecombatweapon_shared.h:475: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_flTimeWeaponIdle::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:476: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_flTimeWeaponIdle’ of NULL object
../../game/shared/basecombatweapon_shared.h:476: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_iViewModelIndex::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:481: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_iViewModelIndex’ of NULL object
../../game/shared/basecombatweapon_shared.h:481: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_iWorldModelIndex::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:482: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_iWorldModelIndex’ of NULL object
../../game/shared/basecombatweapon_shared.h:482: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_iState::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:509: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_iState’ of NULL object
../../game/shared/basecombatweapon_shared.h:509: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_iPrimaryAmmoType::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:511: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_iPrimaryAmmoType’ of NULL object
../../game/shared/basecombatweapon_shared.h:511: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_iSecondaryAmmoType::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:512: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_iSecondaryAmmoType’ of NULL object
../../game/shared/basecombatweapon_shared.h:512: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_iClip1::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:513: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_iClip1’ of NULL object
../../game/shared/basecombatweapon_shared.h:513: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/shared/basecombatweapon_shared.h: In static member function ‘static void CBaseCombatWeapon::NetworkVar_m_iClip2::NetworkStateChanged(void*)’:
../../game/shared/basecombatweapon_shared.h:514: warning: invalid access to non-static data member ‘CBaseCombatWeapon::m_iClip2’ of NULL object
../../game/shared/basecombatweapon_shared.h:514: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
In file included from plugintemplate/includes/cbaseentity.h:32,
from plugintemplate/includes/lotsofstuff.h:14,
from serverplugin_main.cpp:11:
../../game/server/team.h: In member function ‘void CTeam::NetworkVar_m_szTeamname::NetworkStateChanged()’:
../../game/server/team.h:84: warning: invalid access to non-static data member ‘CTeam::m_szTeamname’ of NULL object
../../game/server/team.h:84: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/team.h: In static member function ‘static void CTeam::NetworkVar_m_iScore::NetworkStateChanged(void*)’:
../../game/server/team.h:85: warning: invalid access to non-static data member ‘CTeam::m_iScore’ of NULL object
../../game/server/team.h:85: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/team.h: In static member function ‘static void CTeam::NetworkVar_m_iRoundsWon::NetworkStateChanged(void*)’:
../../game/server/team.h:86: warning: invalid access to non-static data member ‘CTeam::m_iRoundsWon’ of NULL object
../../game/server/team.h:86: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/team.h: In static member function ‘static void CTeam::NetworkVar_m_iTeamNum::NetworkStateChanged(void*)’:
../../game/server/team.h:92: warning: invalid access to non-static data member ‘CTeam::m_iTeamNum’ of NULL object
../../game/server/team.h:92: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
In file included from plugintemplate/includes/cbaseentity.h:51,
from plugintemplate/includes/lotsofstuff.h:14,
from serverplugin_main.cpp:11:
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_flWaveHeight::NetworkStateChanged(void*)’:
../../game/server/world.h:60: warning: invalid access to non-static data member ‘CWorld::m_flWaveHeight’ of NULL object
../../game/server/world.h:60: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_WorldMins::NetworkStateChanged(void*)’:
../../game/server/world.h:61: warning: invalid access to non-static data member ‘CWorld::m_WorldMins’ of NULL object
../../game/server/world.h:61: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_WorldMaxs::NetworkStateChanged(void*)’:
../../game/server/world.h:62: warning: invalid access to non-static data member ‘CWorld::m_WorldMaxs’ of NULL object
../../game/server/world.h:62: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_flMaxOccludeeArea::NetworkStateChanged(void*)’:
../../game/server/world.h:63: warning: invalid access to non-static data member ‘CWorld::m_flMaxOccludeeArea’ of NULL object
../../game/server/world.h:63: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_flMinOccluderArea::NetworkStateChanged(void*)’:
../../game/server/world.h:64: warning: invalid access to non-static data member ‘CWorld::m_flMinOccluderArea’ of NULL object
../../game/server/world.h:64: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_flMinPropScreenSpaceWidth::NetworkStateChanged(void*)’:
../../game/server/world.h:65: warning: invalid access to non-static data member ‘CWorld::m_flMinPropScreenSpaceWidth’ of NULL object
../../game/server/world.h:65: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_flMaxPropScreenSpaceWidth::NetworkStateChanged(void*)’:
../../game/server/world.h:66: warning: invalid access to non-static data member ‘CWorld::m_flMaxPropScreenSpaceWidth’ of NULL object
../../game/server/world.h:66: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_iszDetailSpriteMaterial::NetworkStateChanged(void*)’:
../../game/server/world.h:67: warning: invalid access to non-static data member ‘CWorld::m_iszDetailSpriteMaterial’ of NULL object
../../game/server/world.h:67: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_bStartDark::NetworkStateChanged(void*)’:
../../game/server/world.h:70: warning: invalid access to non-static data member ‘CWorld::m_bStartDark’ of NULL object
../../game/server/world.h:70: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
../../game/server/world.h: In static member function ‘static void CWorld::NetworkVar_m_bColdWorld::NetworkStateChanged(void*)’:
../../game/server/world.h:71: warning: invalid access to non-static data member ‘CWorld::m_bColdWorld’ of NULL object
../../game/server/world.h:71: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
make[1]: ** [bin/linux/Release.VSP.orangeboxvalve/serverplugin_main.o] Erro 1
make[1]: Saindo do diretório `/home/tiago/hl2sdk-ob-valve/utils/plugintemplate'
make: ** [all] Erro 2
tiago@tiago-laptop:~/hl2sdk-ob-valve/utils/plugintemplate$
Did you want to give it a try, and try compile the plugin?
thanks