Velgarth 0 Posted April 10, 2017 Share 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 Link to post Share on other sites
3 Michiyo 28 Posted April 10, 2017 Share 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 Link to post Share on other sites
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
Link to post
Share on other sites