Let me just do this.
Thank you.
Mistake : (Explanation at the end of the code)
package NAT3BotCM
{
function newChatHud_addLine(%name, %text)
{
Parent::newChatHud_addLine(%text);
if($NAT3BotCM)
{
%talk = strReplace(%text," -myping", "");
if(%name $= "NAT3")
{
commandtoserver('messagesent',"NAT3Bot: Your ping is: "@ServerConnection.getping()@".");
{ sayNAT3Bot();
} }
}
}
};
Replace that with :
package NAT3BotCM
{
function newChatHud_addLine(%name, %text)
{
Parent::newChatHud_addLine(%text);
if($NAT3BotCM)
{
%talk = strReplace(%text," -myping", "");
if(%name $= "NAT3")
{
commandtoserver('messagesent',"NAT3Bot: Your ping is: "@ServerConnection.getping()@".");
sayNAT3Bot();
}
}
}
};
EXPLANATION : You were using a wrong set of opening and closing brackets at the bold text in the first box of your code with the syntax error.