There is a slight bug with the GetUserMessageInfo function in the game dll, basically what will happen is if I try to get the message info for a message that doesn't exist, it will print out an error message and cause the server to exit, rather than allowing me to do my own thing with the function returning false.
What I'm doing is I'm running a loop from 0 -> until GetUserMessageInfo returns false to get a list of messages into memory for possible use later on in a server plug-in. Example: CUserMessages::GetUserMessageSize( 22 ) out of range!!! The thread 'Win32 Thread' (0xdf8) has exited with code 1 (0x1). The thread 'Win32 Thread' (0x2d8) has exited with code 1 (0x1). The program '[2540] srcds.exe: Native' has exited with code 1 (0x1). What's causing this is, IsValidIndex is returning TRUE in the GetUserMessageInfo function, but then GetUserMessageSize checks the index and finds it to be invalid, when it is not. The GetUserMessageSize function checks if the index is valid by doing: "if ( index < 0 || index >= (int)m_UserMessages.Count() )" Shouldn't this be: "if ( index < 0 || index > (int)m_UserMessages.Count() )" Or am I mistaken? Thanks. - voogru. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

