Difference between revisions of "AdminBot for LSL/Events/SB COMMAND FAILED"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE: SB_COMMAND_FAILED}} <onlyinclude>Raised when command execution error occurs.</onlyinclude> {{AdminBot Variables Table|command=SB_SETUP_SETGROUP}} {{AdminBot...") |
|||
Line 2: | Line 2: | ||
<onlyinclude>Raised when command execution error occurs.</onlyinclude> | <onlyinclude>Raised when command execution error occurs.</onlyinclude> | ||
− | {{AdminBot Variables Table| | + | {{AdminBot Event Variables Table|event=SB_COMMAND_FAILED}} |
{{AdminBot Required Vars|SB_SETUP_SETGROUP}} | {{AdminBot Required Vars|SB_SETUP_SETGROUP}} |
Revision as of 11:10, 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
| |
str | yes | name of the group | |
id | yes | security code |
Result
One of the following events will be generated: