--
[ Picked text/plain from multipart/alternative ]

Hi everyone. This is my first time posting on this list, so I hope I did 
everything correct.

I'm working on a HL2MP mod with a group of other students, and am attempting to 
implement a player class system. I believe I have to network the variable that 
stores the players class, and I am new to such a thing. I am getting the error 
message

Missing RecvProp for DT_HL2MP_Player - DT_HL2MP_Player/m_iClass

m_iClass is the variable that stores the player's class. It is a CNetworkVar 
integer. I have added the line

SendPropInt( SENDINFO( m_iClass ) ),

 to the IMPLEMENT_SERVERCLASS_ST area in hl2mp_player.cpp and

RecvPropInt( RECVINFO( m_iClass ) ),

 to the IMPLEMENT_CLIENTCLASS_DT area in c_hl2mp_player.cpp, yet the error 
message implies I am missing the latter. I have placed both lines on the tops 
of their respective lists, so I am sure that all the variables that are being 
networked in these areas are in the same order (if that even matters). I am 
somewhat stuck at the moment, so any help would be greatly appreciated. Thanks 
in advance.

_________________________________________________________________

--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to