For those too lazy to go to pastebin, this is the relevant code:
Spoiler
Pastebin:
http://pastebin.com/CfDr1uNr
Posted 25 August 2013 - 05:35 AM
Posted 25 August 2013 - 07:10 PM
Posted 25 August 2013 - 10:24 PM
Posted 26 August 2013 - 12:24 AM
function trackPos()
position = {xPos, yPos, zPos, facing, long, wide, deep}
h = fs.open("GPS", "w")
h.write(textutils.serialize(position))
h.close()
end
xPos etc. are declared outside of the function i dont know if that will cause it to error but it would be safer to dofunction trackPos(xPos, yPos, zPos, facing, long, wide, deep)
position = {xPos, yPos, zPos, facing, long, wide, deep}
h = fs.open("GPS", "w")
h.write(textutils.serialize(position))
h.close()
end
trackPos() -- with relitive terms eg. trackPos(1,2,3,"north",5,8,10)
see if that makes a difference
Posted 27 August 2013 - 09:35 AM
os.queueEvent("trash_event")
coroutine.yield()
Posted 27 August 2013 - 10:23 AM
Posted 27 August 2013 - 08:46 PM
McLeopold, on 27 August 2013 - 10:23 AM, said:
Imred Gemu, on 25 August 2013 - 10:24 PM, said:
function trackPos()
position = {xPos, yPos, zPos, facing, long, wide, deep}
h = fs.open("GPS", "w")
h.write(textutils.serialize(position))
sleep(0.1)
h.close()
end
Posted 28 August 2013 - 03:40 AM
0 members, 1 guests, 0 anonymous users