Code:
if (msg_type == 0)
Sys_Error("%s: Tried to create a message with a bogus message type ( 0 )", __func__);
If you use message_begin/EngFuncs_MessageBegin with type 0 (2nd argument), you will get this error.
I think you used get_user_msgid and it returned 0.
__________________