Jump to content
You are about to reply to a thread that has been inactive for 1539 days.

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

Recommended Posts

Posted

don't know if this affects anyone else, but when i copy/paste from the LSL wiki,  it will bork a script.

i copy pasted  a simple changed event ( changed inv ) , and it triggered in my obj on every touch event,

but when i erased if from the script and manually wrote the event, it worked fine.

 

anyone else?... anyone?.. Beuller?

Posted (edited)

Could it be copy/paste with extended character set, where you get some hidden chars added in the LSL script?

 

Edited by Rachel1206
  • Like 1
Posted
21 minutes ago, Xiija said:

i copy pasted  a simple changed event ( changed inv ) , and it triggered in my obj on every touch event,

What exactly did you try to copy (link or copy it here), and are you 100% sure you pasted what was expected? Does it happen again? It's not impossible that there could have been extra stuff in the clipboard, but it'd more likely cause a syntax error.

Posted (edited)

the copy was just a quick grab from the changed page... http://wiki.secondlife.com/wiki/Changed

 

Quote

  changed(integer change)
    {
        //note that it's & and not &&... it's bitwise!
        if (change & CHANGED_INVENTORY)         
        {
            llOwnerSay("The inventory has changed.");
        }

i've had this problem before when snaggin code for other scripts, and when i use the  snippet copied

from the wiki, the script fails weirdly, but when i type it out manually, it works fine.

(from my post in animesh forum, i used ... llGetInventoryName(INVENTORY_SOUND,0);  )

 

anyhoo, i guess rachel is on to something, and i will hand type stuff from now on :) ty

Edited by Xiija
  • Like 1
Posted

when I copy from  a web page and I have these kinds of problems then I copy paste it into a plain text editor like Notepad. Then copy it from Notepad to the viewer LSL editor

You are about to reply to a thread that has been inactive for 1539 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
×
×
  • Create New...