Currently getting these 2 errors popping up:
PHP Code:
L 08/25/2014 - 17:30:19: [SM] Native "IsClientInGame" reported: Client index 0 is invalid
L 08/25/2014 - 17:30:19: [SM] Displaying call stack trace for plugin "deathmatch.smx":
L 08/25/2014 - 17:30:19: [SM] [0] Line 431, deathmatch.sp::Timer_WelcomeMsg()
L 08/25/2014 - 17:31:09: [SM] Native "SetEntProp" reported: Entity 1 (1) is invalid
L 08/25/2014 - 17:31:09: [SM] Displaying call stack trace for plugin "deathmatch.smx":
L 08/25/2014 - 17:31:09: [SM] [0] Line 1157, deathmatch.sp::RemoveRadar()
To stop Line 431 error this will work:
PHP Code:
public Action:Timer_WelcomeMsg(Handle:timer, any: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?
__________________