Author Topic: Syntax error  (Read 8276 times)

It'd work better than TextEdit, tbh.

Or you could just save the file without any formatting stuff.

http://support.apple.com/kb/ta20406

Ignore the fact that it's talking about HTML. It should fix your issue too.

What would be a good choice then?


It'd work better than TextEdit, tbh.

Or you could just save the file without any formatting stuff.

http://support.apple.com/kb/ta20406

Ignore the fact that it's talking about HTML. It should fix your issue too.

Alright thanks

Okay I switched the textedit preferences. Im still getting an error however its much shorter. The error is "ook##"

Okay I switched the textedit preferences. Im still getting an error however its much shorter. The error is "ook##"
A screenshot like the last one you posted would be greatly helpful.

package chatbot

{

function clientCmdChatmessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)

   {

parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
   
   if (%msg $= "Zazzlebot")
   
      {
      
         if (%name $=$Pref::Player::Netname)
         
         {   
         
         commandtoserver('messagesent',"Yissir");
         
         }
         
      }
      
   }
   
};
activatepackage(chatbot);

Also is this formatting okay?

New error (screenshot was too large of a file)

Add-Ons/client_myfirstbot/client.cs Line: 1 - Syntax error.
>>>Some error context, with ## on sides of error halt:
ook##
>>>Error report complete.

ADD-ON "client_myfirstbot" CONTAINS SYNTAX ERRORS

Since the text "ook" does not appear anywhere in the file, I'm forced to assume that the problem is the same as before...

So I should just find another way to save the files?

Also is this formatting okay?

Don't put an empty line after every single line. Using it as a divider is fine (like between functions) but not every single line. This isn't an essay, it doesn't need to be double spaced.



Upload your console.log file or download Sublime Text. The latter one is almost guaranteed to work.

Also is this formatting okay?
The brackets themselves don't get indented, just the things inside it
And use the tab key, not the spacebar

Okay thanks and i am using tab. I guess it copied weird

And use the tab key, not the spacebar

Mehh, preferences. I used to be gung-ho for tabs, but in later days I've started to use spaces.

Mehh, preferences. I used to be gung-ho for tabs, but in later days I've started to use spaces.

blasphemy!