Freiver Freiver - 1 year ago 104
Javascript Question

Java Script function not work

var Structure[undefined]

function run{



function setStructure(structure){


function House(){

Why does the Programm not run the function House() in Structure[0]?
It is for a Minecraft PE mod.

Answer Source

I suppose you intended this:

function run{
    Structure[0]() // <--- notice the parentheses.

Without the parentheses, the function run does not do anything. It just references the function, without invoking it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download