Raised This Month: $12 Target: $400
 3% 

Client index 0 is INVALID!?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
olj
Veteran Member
Join Date: Jun 2009
Old 07-20-2009 , 05:22   Client index 0 is INVALID!?
Reply With Quote #1

I tried to use "tripmine" plugin for l4d, and some others. I know that most of them shouldnt work for l4d, but when i tried to use, i got message in console: something like that : Client index 0 is invalid. So, even if they shouldnt work, why such message? I thought 0 index is index of the host. WTF??
olj is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 07-20-2009 , 05:55   Re: Client index 0 is INVALID!?
Reply With Quote #2

You have already answered your question. 0 is a server index. If plugin trying to do client specific stuff to the server you will recive this error. The best solution to avoid this error is just to check if client isn't 0:
PHP Code:
if (client == 0)
   return; 
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
TESLA-X4
Senior Member
Join Date: Dec 2008
Location: $Recycle.Bin
Old 07-21-2009 , 03:24   Re: Client index 0 is INVALID!?
Reply With Quote #3

It can also happen if the server is a listen server (i.e. the client is the server and vice versa).
TESLA-X4 is offline
Reply



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 09:00.


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