Hello,
I have the following code:
Code:
public OnClientPostAdminCheck(client)
{
CreateTimer(4.0, OnClientPostAdminCheck_Delay, GetClientUserId(client));
}
public Action OnClientPostAdminCheck_Delay(Handle timer, any client)
{
if(!IsClientInGame(client) || IsFakeClient(client) || IsClientReplay(client) || IsClientSourceTV(client))
{
return Plugin_Handled;
}
//something here
return Plugin_Handled
}
And im getting these errors:
Code:
L 11/20/2017 - 02:07:11: [SM] Call stack trace:
L 11/20/2017 - 02:07:11: [SM] [0] IsClientInGame
L 11/20/2017 - 02:07:11: [SM] [1] Line 28, C:\PawnStudio\playerscheck.sp::OnClientPostAdminCheck_Delay
Can anyone tell we what's wrong here?