Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

syntax error

Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-22-2007 11:13
Hi!

I have started a script with

CODE

vector PosIni = llGetPos();

and says syntax error in that line. why?
_____________________
First goes before
AW Devices
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
02-22-2007 11:59
From: Azul Wilder
Hi!

I have started a script with

CODE

vector PosIni = llGetPos();

and says syntax error in that line. why?


If you have started the script with that line, then PosIni is a global variable... You cannot assign the results of a function to a global variable, you may only use literal constants.
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-22-2007 12:28
That's right thanks
_____________________
First goes before
AW Devices