View Single Post
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 08-25-2014 , 07:06   Re: [CS:GO] Deathmatch (v2.0.1, 2014-08-19)
Reply With Quote #10

Currently getting these 2 errors popping up:
PHP Code:
L 08/25/2014 17:30:19: [SMNative "IsClientInGame" reportedClient index 0 is invalid
L 08
/25/2014 17:30:19: [SMDisplaying call stack trace for plugin "deathmatch.smx":
L 08/25/2014 17:30:19: [SM]   [0]  Line 431deathmatch.sp::Timer_WelcomeMsg()
L 08/25/2014 17:31:09: [SMNative "SetEntProp" reportedEntity 1 (1is invalid
L 08
/25/2014 17:31:09: [SMDisplaying call stack trace for plugin "deathmatch.smx":
L 08/25/2014 17:31:09: [SM]   [0]  Line 1157deathmatch.sp::RemoveRadar() 
To stop Line 431 error this will work:
PHP Code:
public Action:Timer_WelcomeMsg(Handle:timerany:userid)
{
    new 
clientIndex GetClientOfUserId(userid);
    
    if (!
IsFakeClient(clientIndex))
    {
        if (
IsClientInGame(clientIndex))
        {
            
PrintHintText(clientIndex"This server is running Deathmatch Version 2.0.1");
            
//PrintToChat(clientIndex, "[\x04WELCOME\x01] This server is running \x04Deathmatch \x01v2.0");
        
}
    }
    return 
Plugin_Stop;

Could be a better way to do it but this way makes sense to me.

Not sure on Line 1157 but maybe the same code as above will fix this error?
__________________
versatile_bfg is offline