Author Topic: ByeBye  (Read 1618 times)

« Last Edit: October 26, 2012, 12:29:53 AM by NAT3 »

If you'd please attach your console.log we can find out where and why the console is stating the error.
« Last Edit: September 02, 2012, 08:57:51 PM by Pacnet2012³ »

nd one.
« Last Edit: October 26, 2012, 12:30:02 AM by NAT3 »

How would I enable a client add-on when it's already enabled? If you mean by activating it, I already said, I can't.
(console.log attached. :P)
Ah shoot I messed it up and thought it was a server side add-on on mistake.
Anyway, I'm reading your code right now.

I don't know if you posted the right code..

Quote from: Console.log
if($BlockBot)

Yet in your code you have if($NAT3BotCM)...

Are you sure this is the correct client.cs? I'm just getting confused now. Either you aren't posting the full code of your add-on or you mixed it up or what?
« Last Edit: September 02, 2012, 09:06:35 PM by Pacnet2012³ »

« Last Edit: October 26, 2012, 12:30:16 AM by NAT3 »

Okay, this should be what you need.
EDIT: Wtf? You're right. I must've messed up and put $blockbot
« Last Edit: September 02, 2012, 09:07:18 PM by NAT3 »

Okay, this should be what you need.
And post the full client.cs also, it doesn't look like you did that.

« Last Edit: October 26, 2012, 12:32:37 AM by NAT3 »

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 :

Code: [Select]
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.

« Last Edit: September 02, 2012, 09:16:23 PM by Pacnet2012³ »

Oh thank god, or I mean you. Here, let me test the script.

« Last Edit: October 26, 2012, 12:30:52 AM by NAT3 »

activatepackage(NAT3BotCM);

Put the parent:: line at the very end of your function newChatHud_addLine.

Also make sure you didn't replace the activatepackage line (what Ipquarx said) because I didn't really put that in my to-be-replaced code..

« Last Edit: October 26, 2012, 12:31:03 AM by NAT3 »