Raised This Month: $7 Target: $400
 1% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 11-02-2018 , 16:08   PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
Reply With Quote #1

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

Server shutting down. Any ideas how to fix?
LithuanianJack is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-06-2018 , 06:20   Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
Reply With Quote #2

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.
__________________








CrazY. is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 11-06-2018 , 06:24   Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
Reply With Quote #3

Quote:
Originally Posted by CrazY. View Post
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
LithuanianJack is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-06-2018 , 09:01   Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
Reply With Quote #4

This error wouldn't just start to happen only because you switch to ReHLDS.
__________________








CrazY. is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-07-2018 , 07:47   Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
Reply With Quote #5

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.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 11-07-2018 at 07:47.
Ghosted is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-08-2018 , 07:35   Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
Reply With Quote #6

Show some code.
__________________
HamletEagle is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 11-08-2018 , 09:46   Re: PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
Reply With Quote #7

Quote:
Originally Posted by Ghosted View Post
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 View Post
Show some code.
What code? I don’t know where the problem from.
LithuanianJack is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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