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

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

Recommended Posts

Posted

Hi i been looking around about this llDialog: button labels must be 24 or fewer characters long

but cant seam to finde where i am suposed to  fix it :(

 

and yes i am dumb when come to computers ;)

Posted

here is a snippet that may help?

 

composelist()
{
    integer currentobject = 0;
    integer totalobjects = llGetInventoryNumber(INVENTORY_OBJECT);
        object_list = [];
        do
        {   name = llGetInventoryName(INVENTORY_OBJECT, currentobject);
            name = llGetSubString(name, 0, 23) ;  // button charachter limit
            object_list += name;
            currentobject++;
        }
        while (currentobject > 0 & currentobject < totalobjects);
        gLstMnu =  object_list;
}

  • Like 1
Posted

If you are writing your own script, you incorporate something like Xijia's code snippet into a user-defined function that will pre-process the button labels before they get to your llDialog statement.  If you are not writing your own script but are just trying to put button labels into someone else's script, the easiest solution is to simply use labels that are less than 24 characters long.  There is no easier way to do it.

You are about to reply to a thread that has been inactive for 2862 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...