ValveTime.co.uk | Valve News, Forums, Steam

I'm trying to send a server message to a client but all I get is this print out :(

*** ERROR: Bone access not allowed (entity 21:viewmodel)

CUserMessages:: DispatchUserMessage: Bogus msg type 22 (max == 22)

Couldn't dispatch user message (22)

Netchannel: failed processing message svc_UserMessage.





Here is my code that (should :)) send a message, it resides in a logical entity class I've created.

CSingleUserRecipientFilter user( UTIL_PlayerByIndex(1) );

user.MakeReliable();

UserMessageBegin( user, "scoreMessage" );

WRITE_BYTE( 42 );

MessageEnd();




I've registered the message in the constructor in the same class and it looks like this

usermessages->Register( "scoreMessage", 1 );





Any ideas what I'm missing or what to make out of the error messages?

Thanks in advance... :)
Back
Top