Jump to content
  • 0

How to fix the problem?


KennyChidorie
 Share

You are about to reply to a thread that has been inactive for 3004 days.

Please take a moment to consider if this thread is worth bumping.

Question

integer face4 = 4;
default
{
state_entry()
{
//llSay(0, "Hello, Avatar!");
}

touch_start(integer total_number)
{
integer link = llDetectedLinkNumber(0);
string name = llGetLinkName(link);
llSay(llGetSubString(-500, name, face4);
}
}

 

face4 -> Syntax error.

I need use faces of child prims for the button.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I really don't know what you intended to do with this, so I'm not sure how to advise you.

llSay(llGetSubString(-500, name, face4);

There are at least four errors in that one statement, involving the syntax of llSay, the use of llGetSubString  --What substring? -- , the appearance of face4, and a missing parenthesis.  I suggest spending a little time looking in the LSL wiki at how llSay and llGetSubString are used.  Before that, though, devote some time to thinking through the logic of what you want the script to do, step by step.  Other scripters can always help fix syntax, but only you can clarify what the script is supposed to do.

BTW, questions like this really belong in the LSL Scripting forum, not in Answers. :smileywink:

  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3004 days.

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
 Share

×
×
  • Create New...