Author Topic: Can someone tell me what's wrong with my chatbot?  (Read 479 times)

Exact code from console:
Code: [Select]
package chatbot
{
%FoxBotIs##On## = false;
%FoxBotVersionNum = "1.0.2";
%FoxBotWantsToDoMath = false;

function clientCmdChatMessage(%cl, %voice, %pitch, %line, %pre, %name, %suf, %msg)
{
parent::clientCmdChatMessage(%cl, %voice, %pitch, %line, %pre, %name, %suf, %msg);

I don't see what's wrong here. It appear to be the only syntax error.

You cant declare variables in a package. Local variables must be in a function, global variables can be in either a function or just in the file.

You can't declare local variables like that. Plus, I think you want to use global variables.

Place variables outside of package, make them a global variable (change the % to a $ to change it into a global var)