View Single Post
WriteDest_Parm: not a client
Old
  (#1)
smokey
Member
 
Status: Offline
Posts: 18
Join Date: Apr 2007
Default WriteDest_Parm: not a client - 23-02-2008

I get this error some times in console of my server with podbot

Quote:
FATAL ERROR (shutting down): Host_Error: WriteDest_Parm: not a client
I also see

Quote:
FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Although that one is less often

In my plugins I always use this:


PHP Code:
bool:Util_Is_Valid_Playerid )
{
 if( 
id || id MAX_PLAYERS )
 {
  return 
false;
 }
 if( 
is_user_connectedid ) && ( pevidpev_flags ) & FL_CLIENT ) )
 {
  return 
true;
 }
 return 
false;

and then in any function

PHP Code:
if( Util_Is_Valid_Playerid ) && !is_user_botid ) )
{
   
// the message, what ever is here

and only crashes like this when there are bots, but not always, only when they are leaving and entering often.

I am fairly certain this is becuase of the bot, when I disable bots this does not occur. I dont know exactly what is being sent to the bot that would cause this so I dont know what I can do.

Is there any way that some kind of ignore flag can be set so that it doesnt try and write or send messages to bots?

Code:
 
AMX Mod X          RUN   -    amxmodx_mm.dll    v1.76b      ini  ANY    ANY  
POD-Bot mm       RUN   -    podbot_mm.dll         v3.0B18b  ini  Chlvl  ANY  

 
POD-Bot Menu                  1.3        g4s|figurE.09     amxx_podbotmenu  running  
POD-Bot MM Quota Contr  1.0 RC   KWo                  amxx_podbot_ctr    running
  
Reply With Quote