Got one, but dont work
print hour
Moderators: Murderator+, Murderator
print hour
need a macro that prints date and hour plz 
Got one, but dont work
Got one, but dont work
[url=http://www.coldfireuo.net][img]http://i18.photobucket.com/albums/b101/DarthBlacky/Provisional2.jpg[/img][/url]
Re: print hour
This is script.motxu wrote:need a macro that prints date and hour plz
Got one, but dont work
Code: Select all
Sub MakeTime()
VAR D, T, Ret, i
Ret = STR(UO.Time())
T = ""
For i = 0 To Len(Ret)
T = Ret[Len(Ret)-i] + T
If (I == 2) OR (I == 4) Then
T = ":" + T
EndIf
Next
Ret = STR(UO.Date())
D = ""
For i = 0 To Len(Ret)
D = Ret[Len(Ret)-i] + D
If (I == 2) OR (I == 4) Then
D = "." + D
EndIf
Next
Ret = T + " @ " + D
RETURN Ret
end sub
Code: Select all
var test()
VAR Time
Time = MakeTime()
UO.Print(Time)
end sub