I'm making an AutoMessage script, and it uses random messages. But it stops the script and the debugger has an error:
code:
Error: Expected ';' (code: -2146827284)
File: AutoMessage.js. Line: 16.
Here is where it finds fault with my script.
code:
int randomNum1 = Math.round(Math.random() * 5 + 1);
switch (randomNum1)
{
case 1 :
randomMsg = "Hello!";
break;
case 2 :
randomMsg = "Hi!";
break;
case 3 :
randomMsg = "Yo";
break;
case 4 :
randomMsg = "Allo";
break;
case 5 :
randomMsg = "Hiya";
break;
case 6 :
randomMsg = "How are you?";
break;
}
Help needed, can't find where to put this ;, or what's wrong with it...