Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

scripting doc additions

Celerity Epoch
Genius in absentia
Join date: 13 Nov 2002
Posts: 179
12-07-2002 19:48
One thing I've found that I didin't see in the docs is that you can't have any blank lines before the default()

I used to comment the top of my script

//
// script - what it does
//

default()
{

And suddenly my script reported syntax errors at 0,0.

Anyone else notice this or other syntax oddities?
bUTTONpUSHER Jones
professional puddlejumper
Join date: 10 Oct 2002
Posts: 172
12-07-2002 20:29
good catch! usually when i get a syntax at (0,0), i just add a space somewhere then delete it, and resave, and it works.

bp
Celerity Epoch
Genius in absentia
Join date: 13 Nov 2002
Posts: 179
Another Oddity
12-08-2002 07:36
sometimes if I save using ctrl s it automatically fails syntax check - which is screwey.

I hit ctrl-s it gives me syntax error, I add and remove a space (I've seen that too bp) and try again, still no. I add and remove a space again but use the "save" button on the dialog and it works...