I've been a completete noob at Torquescript today.
I haven't used Torque for 5 months, and during that time I used Java very heavily. So let me tell you the story:
I made an add-on called "System_HammerHost" today, which communicates with the HammerHost control panel server, and you would not believe how stupid my initial code was.
Instead of using switch$ keywords, I used switch. Also, I used "+" signs instead of "@" signs by accident. I confused Java syntax with Torque script syntax. Worst of all, I used == to compare strings instead of $=. That and the plus signs made me waste 20 minutes trying to search for syntax errors when "String always evaluates to 0" errors spammed the console.
I was so used to Java that I did not notice the "+" signs were not used for concatenating strings. What an idiot I was.
Additionally, I used break; statements inside cases in switches. No wonder the console was spammed with "Break outside of loop...ignoring" errors. Occasionally, I forgot to put "%" and "$" signs in front of variables (since you don't use those in Java), and even goofed off so much that I declared a variable like this:
int $hhcp_chatListenCount = 0;
And to top it all of, I thought serverCmdchatMessage() was the server-command-function for sending chat messages, although it's really serverCmdmessageSent(). Yet another stupid mistake I made was forgetting to put the parented serverCmdmessageSent() function inside a package.
So looks like I forgot all my prior Torquescript knowledge from early-mid 2013, and need to brush up on it.
Does anybody else confuse multiple languages? Fortunately, I am lucky to not confuse HTML, CSS, Javascript, and Java with each other. It's just the percentage and dollar signs which drive me crazy.