Author Topic: scripting problems  (Read 530 times)

Can someone tell me whats wrong with my script?
Code: [Select]
Loading Add-On: Weapon_G11 (CRC:352579703)
Add-Ons/Weapon_G11/server.cs Line: 445 - Syntax error.
>>> Some error context, with ## on sides of error halt:
   // Basic Item properties

   shapeFile = "./G11.dts";

   emap = true;



   // Specify mount point & offset for 3rd person, and eye offset

   // for first person rendering.

   mountPoint = 0;

   offset = "0 0 0";

   eyeOffset = "0.0 1.0 -0.85"

   rotation ##=## eulerToMatrix( "0 0 0" )



   // When firing from a point offset from the eye, muzzle correction

   // will adjust the muzzle vector to point to the eye LOS point.

   // Since this weapon doesn't actually fire from the muzzle point,

   // we need to turn this off. 
>>> Error report complete.

ADD-ON "Weapon_G11" CONTAINS SYNTAX ERRORS

Can someone tell me whats wrong with my script?
-snipcode-

Doesn't this belong in coding help?
http://forum.blockland.us/index.php?board=25.0

   eyeOffset = "0.0 1.0 -0.85"

   rotation ##=## eulerToMatrix( "0 0 0" )

those 2 need ; after...:

   eyeOffset = "0.0 1.0 -0.85";

   rotation = eulerToMatrix( "0 0 0" );

Thanks. Do most of the lines need ; ????

; signifies the end of a line of code

you need it at the end of every line. brackets do not need them unless packaging something.

ugh why didn't you post this in coding help .. no edit button :/

comments (stuff that comes after //) also don't need a ;

ugh why didn't you post this in coding help .. no edit button :/
Sorry my mistake I'm new to BL forums. Yeah I would change it but I can't edit.