Native "IsFakeClient" reported: Client index 0 is invalid
What is wrong with this?
Code:
public Action:Event_PlayerTeam(Handle:event, const String:name[], bool:dontBroadcast) Code:
[SM] Native "IsFakeClient" reported: Client index 0 is invalid |
Re: Native "IsFakeClient" reported: Client index 0 is invalid
Are you trying this on a listen server?
|
Re: Native "IsFakeClient" reported: Client index 0 is invalid
Code:
|
Re: Native "IsFakeClient" reported: Client index 0 is invalid
bl4nk, no, I am running SRCDS. But it runs on the same computer from which I start the game for testing.
|
Re: Native "IsFakeClient" reported: Client index 0 is invalid
Quote:
|
Re: Native "IsFakeClient" reported: Client index 0 is invalid
Sorry. It really works.
Thanks, teame06 for helping but I dont understand wich client fires this event with clinet=0... world? :) |
Re: Native "IsFakeClient" reported: Client index 0 is invalid
Quote:
Check the structure of the event next time. It has a parameter which says disconnect |
Re: Native "IsFakeClient" reported: Client index 0 is invalid
0 refers to the console generally. 0 is not a valid client index of course. Only 1-GetMaxClients() are valid client indexes.
|
Re: Native "IsFakeClient" reported: Client index 0 is invalid
You need to check to make sure the client is connected ( IsClientConnected ) before you try to check if it is fake
|
All times are GMT -4. The time now is 21:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.