I'm not very fluent in coding.
This is a learning process. You should identify that in your text editor the gray means it thought it was a string. Usually this is caused by not correctly closing a quote (such as like accidently escaping a quote or forgetting to escape one).
Learn how to do this, it will save everyones time
As for your error
Torque isn't case sensitive AFAIK so prolly not a capitalization error.
EDIT: Please actually read your code and don't just copy and paste because if you had some understanding of torque, you might've seen that your function was declared inside another function. You need to understand, we're here to help you understand, not to do this for you. You can take what we write, but LEARN from it.
You literally copied his function inside my function. Functions cannot be put in other functions. The correct solution is to take that function out of my function and move it to a package (the reason we're moving it to a package is because GameConnection::AutoAdminCheck is defined by the game and we don't want to overwrite the original function, just provide functionality along side of it)