Работа с textopen, time

Ask for help

Moderators: Murderator+, Murderator

Post Reply
GenDor
Posts: 45
Joined: 2006-11-06 00:55:40
Contact:

Работа с textopen, time

Post by GenDor »

День добрый!
Подскажите, пожалуйста, я использую команду textprint чтобы видеть после что происходило с чаром. А возможно ли так же добавлять значения времени, чтобы видеть во сколько событие было?
Спасибо!
[img][/img]
DreadLord
Posts: 42
Joined: 2009-02-28 15:02:09
Location: Украина
Contact:

Re: Работа с textopen, time

Post by DreadLord »

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
///
GenDor
Posts: 45
Joined: 2006-11-06 00:55:40
Contact:

Re: Работа с textopen, time

Post by GenDor »

Забил на уо на некоторое время, а вот недавно снова начал поигрывать.
Функцию применил, все работает, большое спасибо!)))
[img][/img]
Makarov
Posts: 62
Joined: 2010-04-07 14:43:26

Re: Работа с textopen, time

Post by Makarov »

маладца!
Post Reply