Raised This Month: $32 Target: $400
 8% 

FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
taheri6
Member
Join Date: Mar 2006
Old 01-09-2008 , 23:17   FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #1

All, Im getting this error - I dont know what code in specific does it.

Code:
FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
I have this piece of code that I use to determine if its a valid client
PHP Code:
public Util_Is_Valid_Playerid )
{
    if( 
== id || id MAX_PLAYERS )
    {
        return 
false;
    }

    if( 
is_user_connectedid ) && ( pevidpev_flags ) & FL_CLIENT ) )
    {
        return 
true;
    }

    return 
false;
}

public 
Util_Should_Msg_Clientid )
{
    if( 
Util_Is_Valid_Player(id) && !is_user_botid ) )
    {
        return 
true;
    }

    return 
false;


So I use if( Util_Should_Msg_Client( id ) ) arround every MSG_ONE I have, I dont use MSG_ONE_UNRELIABLE specifically, always MSG_ONE

And yet I have had a crash or two happen becuase of that error.

Is there something else I need to be checking, or something I am doing wrong?
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 01-10-2008 , 05:04   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #2

You messed up the Message Parms.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-10-2008 , 05:16   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #3

Also you could improve the code like this (i guess):

PHP Code:
new g_iMaxPlayers;

public 
plugin_cfg() {
    
g_iMaxPlayers get_maxplayers();
}

bool:Util_Is_Valid_Playerid )
{
    if( 
id || id g_iMaxPlayers )
    {
        return 
false;
    }

    if( 
is_user_connectedid ) && ( pevidpev_flags ) & FL_CLIENT ) )
    {
        return 
true;
    }

    return 
false;
}

bool:Util_Should_Msg_Clientid )
{
    if( 
Util_Is_Valid_Player(id) && !is_user_botid ) )
    {
        return 
true;
    }

    return 
false;

Why don't you use MSG_ONE_UNRELIABLE ?

May be post the whole code could help.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
taheri6
Member
Join Date: Mar 2006
Old 01-11-2008 , 01:24   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #4

Well the code is about 450k worth, so its pretty big

Now I understand that there's a lot missing but I cant post everything as it would be a huge post and would be messy as heck.
__________________
http://www.yaur.com -=[Yaur]=- Clan Website

Last edited by taheri6; 01-11-2008 at 12:54.
taheri6 is offline
slypanther
BANNED
Join Date: Jan 2008
Old 01-11-2008 , 05:14   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #5

Post sma and peaple would help

Remeber there are some Sma's that are 1100 lines long
slypanther is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-11-2008 , 06:38   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #6

Post the whole code.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-11-2008 , 09:24   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #7

Quote:
Originally Posted by taheri6 View Post
Well the code is about 450k worth, so its pretty big
So it's around 15,000 lines of code?
hlstriker is offline
taheri6
Member
Join Date: Mar 2006
Old 01-11-2008 , 12:54   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #8

It is about that yeah, its a huge plugin that does a lot - its also broken up into about 15 include files so easier readability and editing

In practice, would it be "better" to use MSG_ONE_UNRELIABLE instead of MSG_ONE ?

The error message leads me to beleive that regardless of which one I chose it would have crashed anyways due to an invalid entity.

But if I wrap the Util_Is_Valid_Player( id ) call arround each

PHP Code:
if( Util_Is_Valid_Playerid ) )
{
   
message_begin ( ..blah... );
   ..
blah... 
   
message_end ()

Wouldnt that check to make sure that its a valid client based on the entity flags, or am I misunderstanding how that works?
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
hostingguy
Member
Join Date: Jan 2008
Old 01-14-2008 , 21:22   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #9

Im with you but I think we should wait for a master to respond
hostingguy is offline
Komsa
Junior Member
Join Date: Nov 2009
Old 11-19-2009 , 13:13   Re: FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #10

Help! Who has understood with the given problem? Tell in what the reason?
Komsa 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 02:55.


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