Hi guys,
Can anyone tell me how to use the llParseString2List properly, the wiki is pretty deficient in clarity here.
Here is the snippet of code:
coords = "<24,212,34>"; //this actually gets into the script via chat on channel /55
xyz = llParseString2List(coords, [","],["<",">"]);
X = llList2String(xyz,0);
Y = llList2String(xyz,1);
Z = llList2String(xyz,2);
llSay(0, "X = " + X + "; Y = " + Y + "; Z = " + Z);
What I get is:
X = <; Y = 24; Z = 212
when of course what I want is:
X = 24; Y = 212; Z = 34
I realise that the problem is in the separators and spacers declaration, but i have tried a few combinations now with no luck. Any ideaock
)
is encountered, the string is split in two around it and the separator is discarded. When a string in the second list (a "spacer"