Author Topic: Getting this error in a script  (Read 1190 times)

Code: [Select]
if(%msg $= "MB>Testcmd")

^^{

^^^commandToServer('messageSent',"MagicBot: You rolled a"%num)##;##

^^}

^^

^^

^}

};

activatepackage(chatbot);
Tried to fix this, nothing worked.

put @ between two variables to join them together


Now getting this with another script
Code: [Select]
%m1 = Testing

^^%m2 ##=## Testing

^^%m3 = Testing

^^%selected = m(getRandom(1,3);

You need semicolons on the end of the lines.

You need semicolons on the end of the lines.
Just noticed that, thank you.
EDIT:Now I get this
Code: [Select]

^^%m1 = "Testing";

^^

^^%m2 = "Testing";

^^

^^%m3 = "Testing";

^^

^^%selected = m(getRandom(1,3)

^^

^^parent:##:##clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);

« Last Edit: November 02, 2013, 10:50:34 PM by Gsterman »

« Last Edit: November 02, 2013, 11:39:53 PM by Gsterman »

again, semicolons, except this time you need m(getRandom(1,3) )
another ) AND another ;