Posted 01 February 2013 - 06:49 PM
I can't seem to get this small piece of code to work is there another way of doing it that I don't know about.
or
or
or
If you need it in context its online 731. http://pastebin.com/Zi8Y1S0s
if not _tSave["StartPos"] then
_tSave.StartPos = {x = loc.x, y = loc.y, z = loc.z, facing = loc.facing}
end
or
if not _tSave.StartPos then
_tSave.StartPos = {x = loc.x, y = loc.y, z = loc.z, facing = loc.facing}
end
or
if _tSave["StartPos"] == nil then
_tSave.StartPos = {x = loc.x, y = loc.y, z = loc.z, facing = loc.facing}
end
or
if _tSave.StartPos == nil then
_tSave.StartPos = {x = loc.x, y = loc.y, z = loc.z, facing = loc.facing}
end
If you need it in context its online 731. http://pastebin.com/Zi8Y1S0s