went wrong? I made this first chat bot from a tutorial on how to make chat bots. I followed it and named my chat bot the Secbot. After my in-game name. Well at least half of it.
Anyway heres the main client.cs code for it:
//Secton
//8448
package chatbot {
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg) {
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg) {
if (%msg $= "testing testing 123") {
if (%name $= "Secton") {
commandToServer('messageSent',"Your testing is win, Secton!");
}
};
After starting the game I looked up in the console to see if it had any errors and yet it did. All it said was there are Syntax errors in my code and the error report was complete. Can somebody fix this?