09-06-2014, 06:49 PM
Thank you for the report, it seems the example in the LuaAPI docs is outdated. There used to be an additional file that you would download and it would provide the SendMessage function for you; since then the function has moved directly to the API.
To fix this, you need to change your line 17 to:
your line 28 to:
and your line 39 to:
To fix this, you need to change your line 17 to:
Player:SendMessage("Usage: /explode [playername]")
your line 28 to:
Player:SendMessageSuccess(Split[2] .. " was successfully exploded")
and your line 39 to:
Player:SendMessageFailure(Split[2] .. " was not found")