User talk:Myopic Mole

From Second Life Wiki
Jump to navigation Jump to search

Typos and syntax-errors in your source code

Greetings, I have been editing pages with LSL scripts of yours which you put onto the new Good Building Practices pages. Please do pay a bit more attention to typos in your scripts and test them in-world so they really do compile without an error. Furthermore the following syntax you seem to be used to: <lsl> // DOES NOT COMPILE !!!

default {

   string a = "whatever";//  this is not valid LSL syntax
   state_entry()
   {
       llSay(PUBLIC_CHANNEL, a);
   }

} </lsl> is NOT VALID LSL-SYNTAX. To declare global variables you do the following: <lsl> string a = "whatever";

default {

   state_entry()
   {
       llSay(PUBLIC_CHANNEL, a);
   }

} </lsl>

Thank you for contributing to this wiki! -- Kireji Haiku 13:49, 31 October 2012 (PDT)