And when classname is invalid
Code:
L 07/28/2015 - 18:14:27: [SM] Native "PrintToChat" reported: Client index 0 is invalid
L 07/28/2015 - 18:14:27: [SM] Displaying call stack trace for plugin "trigger_mapentity.smx":
L 07/28/2015 - 18:14:27: [SM] [0] Line 140, /home/groups/alliedmodders/forums/files/3/0/4/5/7/71380.attach::Command_Trigger()
135-142 lines
Code:
if (Classfound == 0)
{
PrintToChat(client, "[Trigger Entity] Entityclass %s not found!", class);
}
else if (Namefound == 0)
{
PrintToChat(client, "[Trigger Entity] Entityname %s not found!", name);
}
maybe
PrintToChat ReplyToCommand