User:Free Portal/Sandbox: Difference between revisions
Jump to navigation
Jump to search
Free Portal (talk | contribs) m →DEBUG |
Free Portal (talk | contribs) mNo edit summary |
||
Line 25: | Line 25: | ||
string DEBUG(string msg) { | string DEBUG(string msg) { | ||
if (DEBUG) | if (DEBUG) | ||
llOwnerSay("__" + llGetObjectName() + " :: " + llGetScriptName() + " :: " + msg | llOwnerSay("__" + llGetObjectName() + " :: " + llGetScriptName() + " :: " + msg | ||
}</lsl> | }</lsl> | ||
</div> | </div> | ||
</div> | </div> |
Revision as of 20:22, 9 March 2010
![]() |
![]() ![]() ![]() ![]() ![]() ![]() |
SandBox
Usefull user function package for LSL
searchReplace
search replace string <lsl>string searchReplace(string input, string old, string new) {
return llDumpList2String(llParseString2List(input, [old], []), new);
}</lsl>
DEBUG
print debug message <lsl>integer debug = TRUE;
string DEBUG(string msg) {
if (DEBUG) llOwnerSay("__" + llGetObjectName() + " :: " + llGetScriptName() + " :: " + msg
}</lsl>