Difference between revisions of "AdminBot for LSL/Events/SB COMMAND FAILED"

From SmartBots Developers Docs
Jump to: navigation, search
Line 9: Line 9:
 
{{API Variables Table End}}
 
{{API Variables Table End}}
  
== Result ==
+
{{AdminBot for Groups Events - standard footer}}
 
+
One of the following events will be generated:
+
* [[AdminBot for Groups/Events|SB_SETUP_SUCCESS]]
+
* [[AdminBot for Groups/Events|SB_SETUP_FAILED]]
+
 
+
{{AdminBot for Groups Commands - standard footer}}
+
  
 
{{NavMenu}}
 
{{NavMenu}}
  
 
__NOTOC__
 
__NOTOC__

Revision as of 11:32, 3 November 2017

Raised when command execution error occurs.

// Event usage:
link_message(integer sender, integer cmd, string data, key id) {

    if(cmd == SB_COMMAND_FAILED) {
        llOwnerSay("Event " + cmd + " arrived! Data:\n" + data);     }
}

Event parameters

link_message event receives cmd, str and id parameters. Their meaning for SB_COMMAND_FAILED event is explained below:

Variable Type Description
cmd integer the SB_COMMAND_FAILED's numeric ID
data string first line - command status code

second line - text explaination

id key not used