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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!