Raised This Month: $ Target: $400
 0% 

Native "IsFakeClient" reported: Client index 0 is invalid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 07-27-2008 , 17:38   Native "IsFakeClient" reported: Client index 0 is invalid
Reply With Quote #1

What is wrong with this?
Code:
public Action:Event_PlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));	
	if (IsFakeClient(client))
	{
		return;
	}
	// some code
}
Error:
Code:
[SM] Native "IsFakeClient" reported: Client index 0 is invalid
[SM] Displaying call stack trace for plugin "test-plugin.smx":
[SM]   [0]  Line 64, /home/groups/sourcemod/upload_tmp/phpRz9Q5o.sp::Event_PlayerTeam()
Tried to add function that prints to chat current client value for diagnostic but it tells me 21 (not 0).
exvel is offline
Send a message via ICQ to exvel
 



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 22:17.


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