It keeps saying that the red line is a syntax error but I cannot figure out why.if(%w $= "A"){ %newMsg = strReplace(%newMsg, %w, "\c7E");}
\C7E?
Where are the ##'s.
There is no syntax error there; it must be in some other part of your script.
.
Look at what line the syntax error is on, not the ##.
I have, I can't find any anywhere around it.
You've used getSubStr incorrectly. I don't think it would cause that error, usually it just echos "Incorrect usage of getSubStr() - Wrong number of arguments" in the console when you try to use it.
%newMsg = strReplace(%newMsg, %w, "\x7E");
I tried commenting out the chunk below and when I did it said there was no longer any error so the error has to be in this chunk:Code: [Select]%newMsg = strReplace(%newMsg, %w, "\x7E");
There is absolutely no syntax error in that.