Annyoing Server Messages

  • Thread starter Thread starter oixx
  • Start date Start date
O

oixx

Guest
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... :)
 
I'm sure there's some place that you need to define all of the messages, or something, which is why it's saying message 22 is 'bogus'.

Have you declared the message in sdk_usermessages.cpp, or the equivalent, based on the version you're using?

-Angry Lawyer
 
Back
Top