Page 1 of 1

problem with writeln()

Posted: 2005-04-10 10:07:09
by hobbit

Code: Select all

sub coord()
var MX=uo.getx()
var MY=uo.gety()
var MZ=uo.getz()
var ft = file("c:\progra~1\uoam\mapy.txt")
ft.open()
ft.writeln(str(MX)+","+str(MY)+","+str(MZ))
ft.close()
end sub

this script writes coordinates to file but:
its always rewrites first line of file - how to add new line and write coordinates to this?

mny thnx