AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 ) (https://forums.alliedmods.net/showthread.php?t=311787)

LithuanianJack 11-02-2018 16:08

PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
 
PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )

Server shutting down. Any ideas how to fix?

CrazY. 11-06-2018 06:20

Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
 
Maybe because you started messages through engfunc instead of message_begin and didnt passed player index, or if you didnt ended message through message_end.

LithuanianJack 11-06-2018 06:24

Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
 
Quote:

Originally Posted by CrazY. (Post 2622842)
Maybe because you started messages through engfunc instead of message_begin and didnt passed player index, or if you didnt ended message through message_end.

I didn’t changed anything, just reinstalled my server and updated to reHLDS

CrazY. 11-06-2018 09:01

Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
 
This error wouldn't just start to happen only because you switch to ReHLDS.

Ghosted 11-07-2018 07:47

Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
 
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.

HamletEagle 11-08-2018 07:35

Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
 
Show some code.

LithuanianJack 11-08-2018 09:46

Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
 
Quote:

Originally Posted by Ghosted (Post 2622984)
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.

Quote:

Originally Posted by HamletEagle (Post 2623099)
Show some code.

What code? I don’t know where the problem from.


All times are GMT -4. The time now is 23:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.