Testing Code

Should this code still work?

<!doctype html>



EmptyEpsilon


player = getPlayerShip(-1)
if player == nil then return {error = "No ship"} end
return {hull = player:getHull() / player:getHullMax()}

Send


;

function send()
{
$.post('exec.lua', $("#script").val(), function(data) {
$("#output").text(JSON.stringify(data));
}, "json")
.fail(function(x, y, reason) {
$("#output").text("FAIL");
});
}


Sign In or Register to comment.