Yalnizxyz Footman Posted April 20, 2017 Share Posted April 20, 2017 Hello; I am learning LSL. I want ask Example: { .... vector p3 = llGetPos(); ... } . . { llSay(0, (string)p3); (How i can print p3 here. Same value as above block) } I hope i can tell. Sory for my english... Link to comment Share on other sites More sharing options...
Rolig Loon Posted April 20, 2017 Share Posted April 20, 2017 Declare p3 outside both of the blocks of code. A variable is valid only within the scope where it is declared. vector p3; { .... p3 = llGetPos(); ... } { llSay(0,(string)p3); } 1 Link to comment Share on other sites More sharing options...
Yalnizxyz Footman Posted April 20, 2017 Author Share Posted April 20, 2017 1 hour ago, Rolig Loon said: Declare p3 outside both of the blocks of code. A variable is valid only within the scope where it is declared. vector p3; { .... p3 = llGetPos(); ... } { llSay(0,(string)p3); } Thank you so much for answer... Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now