Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

vector newpos = llGetPos();

DolphPun Somme
The Pun is its own reword
Join date: 18 Nov 2005
Posts: 309
11-30-2005 21:26
vector newpos = llGetPos();

give me a syntax error.

Am I missing some big change that hasn't been updated in the help files or the wiccky?
Kala Bijoux
Material Squirrel
Join date: 16 Nov 2004
Posts: 112
11-30-2005 21:38
Is that inside a function, or a global variable? It won't work if it's a global, you'll need to declare it a global [vector newpos;] and assign it later inside a function [newpos=llGetPos();].
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
11-30-2005 21:38
That looks fine - may be a missing semicolon (or one that shouldn't be there) on the preceding line.
_____________________
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
11-30-2005 22:00
if vector pos is predefined as a global drop the vector part, if not make it (vector)

or thats the only way i ever get it to compile
DolphPun Somme
The Pun is its own reword
Join date: 18 Nov 2005
Posts: 309
My Bad
11-30-2005 22:41
It was something else (naming conflict). Mods Please delete thread ?