The code you have provided has very little information.
What is NETVAR() ?
Show the NETVAR() function prototype or function definition.
Are you sure the data type of the arguments you passed are correct ?Code:NETVAR(Spotted, "CBaseEntity->m_bSpotted", bool);
Issupposed to be a string ?Code:"CBaseEntity->m_bSpotted"