Lalae Core Posted June 16, 2011 Share Posted June 16, 2011 Online Notifier: llDialog: button labels must be 24 or fewer characters long ()Online Notifier: llDialog: button labels must be 24 or fewer characters long ()Online Notifier: llDialog: button labels must be 24 or fewer characters long ()Online Notifier: llDialog: button labels must be 24 or fewer characters long () I get this error on lots of my items.. what can i do to fix it?? Link to comment Share on other sites More sharing options...
Rolig Loon Posted June 16, 2011 Share Posted June 16, 2011 That's easy. Use shorter button labels in your llDialog function calls. Labels are limited to 24 characters, of which no more than 12 are actually visible. See http://wiki.secondlife.com/wiki/LlDialog Link to comment Share on other sites More sharing options...
Helium Loon Posted June 16, 2011 Share Posted June 16, 2011 The problem is your dialog button labels are too long. As an example: list buttons = [ "this label is much too long for the dialog button", "this is ok" ];default{ state_entry() { llListen(-123, "", NULL_KEY, ""); } touch_start(integer num_detected) { llDialog(llDetectedKey(0), "Dialog Test!", buttons, -123); }} This will generate the error you are getting, because the first button is over 24 characters long. Try something like this instead: list buttons = [ "this label is much too long for the dialog button", "this is ok" ];list buttons_truncated;default{ state_entry() { llListen(-123, "", NULL_KEY, ""); for(i=0; i < llGetListLength(buttons); ++i) buttons_truncated += [ llGetSubString(llList2String(buttons,0),0,23) ]; } touch_start(integer num_detected) { llDialog(llDetectedKey(0), "Dialog Test!", buttons_truncated, -123); }} which uses llGetSubString() to truncate each element to 24 characters in length and adds it to a new list, that is used in the llDialog() function. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted June 16, 2011 Share Posted June 16, 2011 What the others said. And, if you're building the dialog button list on the fly, as I often do, with something like list buttons = llList2ListStrided(my_list,0,-1,stride_length); use llOwnerSay to check that list buttons is what you think it's going to be -- most usually when I see that error message it's because I've messed up building the list somehow. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now