Lua ASI TimeFormat

imring

Ride the Lightning
Автор темы
Всефорумный модератор
2,355
2,520
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R3
  3. 0.3.7-R4
Данный скрипт/плагин изменяет формат TimeStamp. За основу был взят плагин TimeFormat от SR_team (https://blast.hk/threads/25438/)

Отличия:
  • Нету команды /timeformat для изменения timestamp во-время игры.
  • Добавлены миллисекунды (%MM).
  • (ASI) Работает на версиях: 0.3.7-R1, 0.3.7-R3-1, 0.3.7-R4
1586850767249.png


Исходный код плагина: https://github.com/FishLakeDev/TimeFormat
 

Вложения

  • TimeFormat.ini
    32 байт · Просмотры: 1,172
  • TimeFormat_old.lua
    2.5 KB · Просмотры: 895
  • TimeFormat.asi
    72 KB · Просмотры: 1,214
Последнее редактирование:

Use[R]

Известный
1,267
398
[20:02:01.295400] (system) Session started.
[20:02:01.296400] (debug) Module handle: 715F0000

MoonLoader v.026.5-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
https://www.blast.hk/moonloader/

[20:02:01.296400] (info) Working directory: C:\Games\jta\moonloader
[20:02:01.296400] (debug) FP Control: 0009001F
[20:02:01.296400] (debug) Game: GTA SA 1.0.0.0 US
[20:02:01.296400] (system) Installing pre-game hooks...
[20:02:01.297400] (system) Hooks installed.
[20:02:02.400400] (debug) Initializing opcode handler table
[20:02:02.400400] (debug) package.path = C:\Games\jta\moonloader\lib\?.lua;C:\Games\jta\moonloader\lib\?\init.lua;C:\Games\jta\moonloader\?.lua;C:\Games\jta\moonloader\?\init.lua;.\?.lua;C:\Games\jta\moonloader\lib\?.luac;C:\Games\jta\moonloader\lib\?\init.luac;C:\Games\jta\moonloader\?.luac;C:\Games\jta\moonloader\?\init.luac;.\?.luac
[20:02:02.400400] (debug) package.cpath = C:\Games\jta\moonloader\lib\?.dll;
[20:02:02.401400] (system) Loading script 'C:\Games\jta\moonloader\aniframe_fix.luac'...
[20:02:02.401400] (debug) New script: 05A35B1C
[20:02:02.414400] (system) aniframe_fix.luac: Loaded successfully.
[20:02:02.414400] (system) Loading script 'C:\Games\jta\moonloader\Anti-DriverKillByDarkP1xel.lua'...
[20:02:02.414400] (debug) New script: 05A35FB4
[20:02:02.415400] (system) Anti-DriverKill: Loaded successfully.
[20:02:02.415400] (system) Loading script 'C:\Games\jta\moonloader\AutoReboot.lua'...
[20:02:02.415400] (debug) New script: 05A362C4
[20:02:02.428400] (system) ML-AutoReboot: Loaded successfully.
[20:02:02.428400] (system) Loading script 'C:\Games\jta\moonloader\cam.set.lua'...
[20:02:02.428400] (debug) New script: 05A3644C
[20:02:02.439400] (system) cam.set.lua: Loaded successfully.
[20:02:02.439400] (system) Loading script 'C:\Games\jta\moonloader\camhack_1.lua'...
[20:02:02.439400] (debug) New script: 05A365D4
[20:02:02.558400] (system) CamHack: Loaded successfully.
[20:02:02.558400] (system) Loading script 'C:\Games\jta\moonloader\chatfix.lua'...
[20:02:02.558400] (debug) New script: 05A3675C
[20:02:02.559400] (system) chatfix.lua: Loaded successfully.
[20:02:02.559400] (system) Loading script 'C:\Games\jta\moonloader\check-moonloader-updates.lua'...
[20:02:02.559400] (debug) New script: 05A368E4
[20:02:02.578400] (system) Check MoonLoader Updates: Loaded successfully.
[20:02:02.578400] (system) Loading script 'C:\Games\jta\moonloader\disable nicks.lua'...
[20:02:02.578400] (debug) New script: 0861E9D4
[20:02:02.579400] (system) disable nicks.lua: Loaded successfully.
[20:02:02.579400] (system) Loading script 'C:\Games\jta\moonloader\FastMask.lua'...
[20:02:02.579400] (debug) New script: 0861EB5C
[20:02:02.587400] (system) FastMask: Loaded successfully.
[20:02:02.587400] (system) Loading script 'C:\Games\jta\moonloader\FishEyeEffect.lua'...
[20:02:02.587400] (debug) New script: 0861ECE4
[20:02:02.593400] (system) FishEyeEffect: Loaded successfully.
[20:02:02.593400] (system) Loading script 'C:\Games\jta\moonloader\fpsUnlock.lua'...
[20:02:02.593400] (debug) New script: 0861EE6C
[20:02:02.600400] (system) fpsUnlock.lua: Loaded successfully.
[20:02:02.600400] (system) Loading script 'C:\Games\jta\moonloader\hitinformer.luac'...
[20:02:02.600400] (debug) New script: 0861EFF4
[20:02:02.643400] (error) Absolute Damage Informer: C:\Games\jta\moonloader\hitinformer.luac:0: module 'lib.faIcons' not found:
no field package.preload['lib.faIcons']
no file 'C:\Games\jta\moonloader\lib\lib\faIcons.lua'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons\init.lua'
no file 'C:\Games\jta\moonloader\lib\faIcons.lua'
no file 'C:\Games\jta\moonloader\lib\faIcons\init.lua'
no file '.\lib\faIcons.lua'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons.luac'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons\init.luac'
no file 'C:\Games\jta\moonloader\lib\faIcons.luac'
no file 'C:\Games\jta\moonloader\lib\faIcons\init.luac'
no file '.\lib\faIcons.luac'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons.dll'
no file 'C:\Games\jta\moonloader\lib\lib.dll'
stack traceback:
[C]: in function 'require'
C:\Games\jta\moonloader\hitinformer.luac: in function <C:\Games\jta\moonloader\hitinformer.luac:0>
[20:02:02.643400] (error) Absolute Damage Informer: Script died due to an error. (0861EFF4)
[20:02:02.644400] (system) Loading script 'C:\Games\jta\moonloader\hungry or satiety.lua'...
[20:02:02.644400] (debug) New script: 0861EFF4
[20:02:02.658400] (system) hungry or satiety.lua: Loaded successfully.
[20:02:02.658400] (system) Loading script 'C:\Games\jta\moonloader\reload_all.lua'...
[20:02:02.658400] (debug) New script: 0861F17C
[20:02:02.659400] (system) ML-ReloadAll: Loaded successfully.
[20:02:02.659400] (system) Loading script 'C:\Games\jta\moonloader\ScriptManager.lua'...
[20:02:02.659400] (debug) New script: 0861F304
[20:02:02.675400] (system) ScriptManager: Loaded successfully.
[20:02:02.675400] (system) Loading script 'C:\Games\jta\moonloader\SF Integration.lua'...
[20:02:02.675400] (debug) New script: 0861F48C
[20:02:02.688400] (system) SF Integration: Loaded successfully.
[20:02:02.688400] (system) Loading script 'C:\Games\jta\moonloader\TimeFormat.lua'...
[20:02:02.688400] (debug) New script: 0861F614
[20:02:02.698400] (system) TimeFormat: Loaded successfully.
[20:02:12.405400] (system) Installing post-load hooks...
[20:02:12.405400] (system) Hooks installed.
[20:02:12.490400] (system) chatfix.lua: Script terminated. (05A3675C)
[20:02:12.490400] (error) TimeFormat: C:\Games\jta\moonloader\TimeFormat.lua:79: attempt to index upvalue 'ini' (a nil value)
stack traceback:
C:\Games\jta\moonloader\TimeFormat.lua: in function <C:\Games\jta\moonloader\TimeFormat.lua:68>
[20:02:12.490400] (error) TimeFormat: Script died due to an error. (0861F614)
[20:02:13.326400] (script) aniframe_fix.luac: [DAF] txt loaded succesfull
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.864400] (error) hungry or satiety.lua: Script died due to an error. (0861EFF4)
[20:02:45.958400] (system) Unloading...
[20:02:45.958400] (system) aniframe_fix.luac: Script terminated. (05A35B1C)
[20:02:45.959400] (system) Anti-DriverKill: Script terminated. (05A35FB4)
[20:02:45.959400] (system) ML-AutoReboot: Script terminated. (05A362C4)
[20:02:45.959400] (system) cam.set.lua: Script terminated. (05A3644C)
[20:02:45.959400] (system) CamHack: Script terminated. (05A365D4)
[20:02:45.960400] (system) Check MoonLoader Updates: Script terminated. (05A368E4)
[20:02:45.960400] (system) disable nicks.lua: Script terminated. (0861E9D4)
[20:02:45.960400] (system) FastMask: Script terminated. (0861EB5C)
[20:02:45.961400] (system) FishEyeEffect: Script terminated. (0861ECE4)
[20:02:45.961400] (system) fpsUnlock.lua: Script terminated. (0861EE6C)
[20:02:45.961400] (system) ML-ReloadAll: Script terminated. (0861F17C)
[20:02:45.962400] (system) ScriptManager: Script terminated. (0861F304)
[20:02:45.962400] (system) SF Integration: Script terminated. (0861F48C)
[20:02:45.976400] (system) Session terminated.
 

imring

Ride the Lightning
Автор темы
Всефорумный модератор
2,355
2,520
[20:02:01.295400] (system) Session started.
[20:02:01.296400] (debug) Module handle: 715F0000

MoonLoader v.026.5-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
https://www.blast.hk/moonloader/

[20:02:01.296400] (info) Working directory: C:\Games\jta\moonloader
[20:02:01.296400] (debug) FP Control: 0009001F
[20:02:01.296400] (debug) Game: GTA SA 1.0.0.0 US
[20:02:01.296400] (system) Installing pre-game hooks...
[20:02:01.297400] (system) Hooks installed.
[20:02:02.400400] (debug) Initializing opcode handler table
[20:02:02.400400] (debug) package.path = C:\Games\jta\moonloader\lib\?.lua;C:\Games\jta\moonloader\lib\?\init.lua;C:\Games\jta\moonloader\?.lua;C:\Games\jta\moonloader\?\init.lua;.\?.lua;C:\Games\jta\moonloader\lib\?.luac;C:\Games\jta\moonloader\lib\?\init.luac;C:\Games\jta\moonloader\?.luac;C:\Games\jta\moonloader\?\init.luac;.\?.luac
[20:02:02.400400] (debug) package.cpath = C:\Games\jta\moonloader\lib\?.dll;
[20:02:02.401400] (system) Loading script 'C:\Games\jta\moonloader\aniframe_fix.luac'...
[20:02:02.401400] (debug) New script: 05A35B1C
[20:02:02.414400] (system) aniframe_fix.luac: Loaded successfully.
[20:02:02.414400] (system) Loading script 'C:\Games\jta\moonloader\Anti-DriverKillByDarkP1xel.lua'...
[20:02:02.414400] (debug) New script: 05A35FB4
[20:02:02.415400] (system) Anti-DriverKill: Loaded successfully.
[20:02:02.415400] (system) Loading script 'C:\Games\jta\moonloader\AutoReboot.lua'...
[20:02:02.415400] (debug) New script: 05A362C4
[20:02:02.428400] (system) ML-AutoReboot: Loaded successfully.
[20:02:02.428400] (system) Loading script 'C:\Games\jta\moonloader\cam.set.lua'...
[20:02:02.428400] (debug) New script: 05A3644C
[20:02:02.439400] (system) cam.set.lua: Loaded successfully.
[20:02:02.439400] (system) Loading script 'C:\Games\jta\moonloader\camhack_1.lua'...
[20:02:02.439400] (debug) New script: 05A365D4
[20:02:02.558400] (system) CamHack: Loaded successfully.
[20:02:02.558400] (system) Loading script 'C:\Games\jta\moonloader\chatfix.lua'...
[20:02:02.558400] (debug) New script: 05A3675C
[20:02:02.559400] (system) chatfix.lua: Loaded successfully.
[20:02:02.559400] (system) Loading script 'C:\Games\jta\moonloader\check-moonloader-updates.lua'...
[20:02:02.559400] (debug) New script: 05A368E4
[20:02:02.578400] (system) Check MoonLoader Updates: Loaded successfully.
[20:02:02.578400] (system) Loading script 'C:\Games\jta\moonloader\disable nicks.lua'...
[20:02:02.578400] (debug) New script: 0861E9D4
[20:02:02.579400] (system) disable nicks.lua: Loaded successfully.
[20:02:02.579400] (system) Loading script 'C:\Games\jta\moonloader\FastMask.lua'...
[20:02:02.579400] (debug) New script: 0861EB5C
[20:02:02.587400] (system) FastMask: Loaded successfully.
[20:02:02.587400] (system) Loading script 'C:\Games\jta\moonloader\FishEyeEffect.lua'...
[20:02:02.587400] (debug) New script: 0861ECE4
[20:02:02.593400] (system) FishEyeEffect: Loaded successfully.
[20:02:02.593400] (system) Loading script 'C:\Games\jta\moonloader\fpsUnlock.lua'...
[20:02:02.593400] (debug) New script: 0861EE6C
[20:02:02.600400] (system) fpsUnlock.lua: Loaded successfully.
[20:02:02.600400] (system) Loading script 'C:\Games\jta\moonloader\hitinformer.luac'...
[20:02:02.600400] (debug) New script: 0861EFF4
[20:02:02.643400] (error) Absolute Damage Informer: C:\Games\jta\moonloader\hitinformer.luac:0: module 'lib.faIcons' not found:
no field package.preload['lib.faIcons']
no file 'C:\Games\jta\moonloader\lib\lib\faIcons.lua'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons\init.lua'
no file 'C:\Games\jta\moonloader\lib\faIcons.lua'
no file 'C:\Games\jta\moonloader\lib\faIcons\init.lua'
no file '.\lib\faIcons.lua'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons.luac'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons\init.luac'
no file 'C:\Games\jta\moonloader\lib\faIcons.luac'
no file 'C:\Games\jta\moonloader\lib\faIcons\init.luac'
no file '.\lib\faIcons.luac'
no file 'C:\Games\jta\moonloader\lib\lib\faIcons.dll'
no file 'C:\Games\jta\moonloader\lib\lib.dll'
stack traceback:
[C]: in function 'require'
C:\Games\jta\moonloader\hitinformer.luac: in function <C:\Games\jta\moonloader\hitinformer.luac:0>
[20:02:02.643400] (error) Absolute Damage Informer: Script died due to an error. (0861EFF4)
[20:02:02.644400] (system) Loading script 'C:\Games\jta\moonloader\hungry or satiety.lua'...
[20:02:02.644400] (debug) New script: 0861EFF4
[20:02:02.658400] (system) hungry or satiety.lua: Loaded successfully.
[20:02:02.658400] (system) Loading script 'C:\Games\jta\moonloader\reload_all.lua'...
[20:02:02.658400] (debug) New script: 0861F17C
[20:02:02.659400] (system) ML-ReloadAll: Loaded successfully.
[20:02:02.659400] (system) Loading script 'C:\Games\jta\moonloader\ScriptManager.lua'...
[20:02:02.659400] (debug) New script: 0861F304
[20:02:02.675400] (system) ScriptManager: Loaded successfully.
[20:02:02.675400] (system) Loading script 'C:\Games\jta\moonloader\SF Integration.lua'...
[20:02:02.675400] (debug) New script: 0861F48C
[20:02:02.688400] (system) SF Integration: Loaded successfully.
[20:02:02.688400] (system) Loading script 'C:\Games\jta\moonloader\TimeFormat.lua'...
[20:02:02.688400] (debug) New script: 0861F614
[20:02:02.698400] (system) TimeFormat: Loaded successfully.
[20:02:12.405400] (system) Installing post-load hooks...
[20:02:12.405400] (system) Hooks installed.
[20:02:12.490400] (system) chatfix.lua: Script terminated. (05A3675C)
[20:02:12.490400] (error) TimeFormat: C:\Games\jta\moonloader\TimeFormat.lua:79: attempt to index upvalue 'ini' (a nil value)
stack traceback:
C:\Games\jta\moonloader\TimeFormat.lua: in function <C:\Games\jta\moonloader\TimeFormat.lua:68>
[20:02:12.490400] (error) TimeFormat: Script died due to an error. (0861F614)
[20:02:13.326400] (script) aniframe_fix.luac: [DAF] txt loaded succesfull
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.863400] (error) hungry or satiety.lua: C:\Games\jta\moonloader\hungry or satiety.lua:105: attempt to index global 'server' (a nil value)
stack traceback:
C:\Games\jta\moonloader\hungry or satiety.lua:105: in function <C:\Games\jta\moonloader\hungry or satiety.lua:103>
[20:02:15.864400] (error) hungry or satiety.lua: Script died due to an error. (0861EFF4)
[20:02:45.958400] (system) Unloading...
[20:02:45.958400] (system) aniframe_fix.luac: Script terminated. (05A35B1C)
[20:02:45.959400] (system) Anti-DriverKill: Script terminated. (05A35FB4)
[20:02:45.959400] (system) ML-AutoReboot: Script terminated. (05A362C4)
[20:02:45.959400] (system) cam.set.lua: Script terminated. (05A3644C)
[20:02:45.959400] (system) CamHack: Script terminated. (05A365D4)
[20:02:45.960400] (system) Check MoonLoader Updates: Script terminated. (05A368E4)
[20:02:45.960400] (system) disable nicks.lua: Script terminated. (0861E9D4)
[20:02:45.960400] (system) FastMask: Script terminated. (0861EB5C)
[20:02:45.961400] (system) FishEyeEffect: Script terminated. (0861ECE4)
[20:02:45.961400] (system) fpsUnlock.lua: Script terminated. (0861EE6C)
[20:02:45.961400] (system) ML-ReloadAll: Script terminated. (0861F17C)
[20:02:45.962400] (system) ScriptManager: Script terminated. (0861F304)
[20:02:45.962400] (system) SF Integration: Script terminated. (0861F48C)
[20:02:45.976400] (system) Session terminated.
куда иник кинул?
 

imring

Ride the Lightning
Автор темы
Всефорумный модератор
2,355
2,520
Мысль понял, я привык ini кидать в config, перекинул в сам moonloader, заработало, но выглядит иначе.
Посмотреть вложение 53335
настраивай под себя
если нужен формат ЧАС:МИНУТА:СЕКУНДА.МС, то в инике измени format на [%H:%M:%S.%MM]
и так же измени значение space, правда я уже сам не помню на какое, попробуй сам подобрать
 
  • Нравится
Реакции: Use[R]

Use[R]

Известный
1,267
398
настраивай под себя
если нужен формат ЧАС:МИНУТА:СЕКУНДА.МС, то в инике измени format на [%H:%M:%S.%MM]
и так же измени значение space, правда я уже сам не помню на какое, попробуй сам подобрать
screen.png

Значение 90 подошло, спасибо.
 
  • Нравится
Реакции: imring

imring

Ride the Lightning
Автор темы
Всефорумный модератор
2,355
2,520
завез аси версию TimeFormat. миллисекунды все ещё остались, и добавлена поддержка версий сампа: 0.3.7-R3-1, 0.3.7-R4
 
  • Нравится
Реакции: AnWu

imring

Ride the Lightning
Автор темы
Всефорумный модератор
2,355
2,520
Они берутся олттуда же, откуда и в первой версии, или переделал?
переделал.

раньше (в луа версии) использовалась функция os.clock, которая считала примерное кол-во время выполнения скрипта:
The os.clock function returns the number of seconds of CPU time for the program. Its typical use is to benchmark a piece of code
1586887912154.png

вот как раз таки из-за того, что скрипт считал мс выполнения скрипта, а не unix время, а залил только на пс

щас же используется std::chrono::system_clock::now:
Возвращает момент времени представляет в текущий момент времени.
1586888135845.png
 

paulohardy

вы еще постите говно? тогда я иду к вам
Всефорумный модератор
1,889
1,255
вот как раз таки из-за того, что скрипт считал мс выполнения скрипта, а не unix время, а залил только на пс
функцией itsLegend'a возможно пофиксить проблему с миллисекундами в lua версии? вроде нормально отображает их
Lua:
local ffi = require 'ffi'

ffi.cdef[[
    typedef struct _SYSTEMTIME {
        uint16_t wYear;
        uint16_t wMonth;
        uint16_t wDayOfWeek;
        uint16_t wDay;
        uint16_t wHour;
        uint16_t wMinute;
        uint16_t wSecond;
        uint16_t wMilliseconds;
    } SYSTEMTIME;

    void __stdcall GetLocalTime(SYSTEMTIME*);
]]

function main()
    local time = ffi.new('SYSTEMTIME')

    ffi.C.GetLocalTime(time)
    print(time.wSecond .. '.' .. time.wMilliseconds)
end
 
  • Нравится
Реакции: imring

Lobber

Известный
178
57
Возник вопрос.
Так выглядит мой ini

[Main]
format=[%D||%H:%M:%S]
space=95

При этом он выдает такие значения (месяц/день/год||время)
Можно ли сделать формат даты нормальным, т.е день/месяц/год?