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

function readFunc and writeFunc not working

Started by mistamadd001, 18 May 2014 - 01:27 PM
mistamadd001 #1
Posted 18 May 2014 - 03:27 PM
Sorry for the vague title, but that's why I'm here. I have created a couple of functions to make my programming a bit easier, but all they've done is give me headaches

I have been running this program, but the fluid files are not being updated with the new count amount. If someone can take a look and figure it out for me that would be great
theoriginalbit #2
Posted 18 May 2014 - 03:42 PM
you're using local on line 18, that means the value of lCount will only be while that function is running.
mistamadd001 #3
Posted 18 May 2014 - 05:41 PM
I've changed lCount to a global variable but still getting no change to the files. So frustrating, trying to make my life easier, im almost at the point where I'm going to go back to simple progressive formatting, and screw the functions lol.