problem with writeln()

Ask for help

Moderators: Murderator+, Murderator

Post Reply
hobbit
Posts: 4
Joined: 2004-04-22 13:48:27
Contact:

problem with writeln()

Post 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
Hobbit the Ranger
Trillian the Vampire
... on czech shard Darkparadise
Post Reply