Client index 0 is invalid
PHP Code:
PHP Code:
|
Re: Client index 0 is invalid
You're passing 0 to GetClientTeam, which is not a valid client index.
|
Re: Client index 0 is invalid
Quote:
|
Re: Client index 0 is invalid
The hole blockcode could be helpful......
|
Re: Client index 0 is invalid
Quote:
Stop calling GetClientTeam() if client == 0. |
Re: Client index 0 is invalid
It is from a take damage hook (by the error message).
From what I have gathered, this generally happens if you are running a listen-server SourceMod, where the host is client 0, but the actual player entity is at 1. You could change it to: Code:
if(test) |
Re: Client index 0 is invalid
The servers entity index is 0 on a listen server. The clients entity index is 1. Clients start from 1.
|
Re: Client index 0 is invalid
The attacker and inflictor parameters can be 0 for e.g. fall damage.
|
Re: Client index 0 is invalid
Solved! Thanks!
|
Re: Client index 0 is invalid
As Peace-Maker said, entity can be 0, which means "world" (fall damage, prop damage), glad you solved.
|
All times are GMT -4. The time now is 12:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.