This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
kiece's profile picture

Try to use hold programs

Started by kiece, 14 August 2017 - 12:04 AM
kiece #1
Posted 14 August 2017 - 02:04 AM
Hi everybody,
I'm not english so if you don't unterstand me, say it.

I try to use this programs
But when i try to run the program i've got this



The line 164 is : " MRFLaser = LaserAmp.getEnergy()/2500000 ' ( for control + F4 :P/> )
I try to replace the line by ' local MRFLaser = LaserAmp.getEnergy()/2500000 " because i think the autor wanted to create a shortcut
But i realy suck ( i found during 30 min how to run a program *-* )
I need your help. Everyone can help to fix it ? Thank you for reading and your time
Bomb Bloke #2
Posted 14 August 2017 - 08:08 AM
That line attempts to index into a "LaserAmp" table to get the "getEnergy" key. The error reports that "LaserAmp" is not a table, but is instead nil. If "LaserAmp" was never correctly defined, then that tells us that no peripheral of the type "Laser Amplifier" is recognised as being connected to your system - and that particular script wants one hooked up.