Velgarth Posted April 10, 2017 Posted April 10, 2017 If I put this code into a computer, local component = require("component") local nrg = component.ie_lv_capacitor.getEnergyStored():int print(nrg) , I get the error /tmp/eh:3: function arguments expected near 'print' Could someone please tell me what I am doing wrong here? I have OpenComputers and Immersive Engineering loaded Quote
3 Michiyo Posted April 10, 2017 Posted April 10, 2017 The ":int" at the end of your 2nd line is causing the error. The documentation shows you the returns/expected params that way, but you don't include them. Quote
If I put this code into a computer,
, I get the error
Could someone please tell me what I am doing wrong here?
I have OpenComputers and Immersive Engineering loaded