Hej pomozecie mi z tak zwanym "uchem" poniewaz no nie chce dzialac pokazu jedna zecz tylko ze "Zasow lss-admin zostal zrestartowany i tyle a nie chce pokazac tego co pisza kod
[lua]
local text_display=textCreateDisplay()
local gameView= textCreateTextItem ( "", 0.01, 0.3, "medium", 255,255,255,255,1,"left","top",255)
local reportView=textCreateTextItem( "", 0.99, 0.7, "low", 255,255,255,255,1,"right","top",255)
--textitem textCreateTextItem ( string text, float x, float y, [string priority, int red = 255, int green = 0, int blue = 0, int alpha = 255, float scale = 1, string alignX = "left", string alignY = "top", int shadowAlpha = 0] )
textDisplayAddText ( text_display, gameView )
textDisplayAddText ( text_display, reportView )
local gameView_contents={ "Zas?b lss-admin zosta? zrestartowany" }
local reportView_contents={}
local time = getRealTime()
local tn=string.format("%04d%02d%02d%02d%02d%02d-%02d.txt", time.year+1900, time.month, time.monthday, time.hour, time.minute, time.second, math.random(1,99))
local fh=fileCreate("logi/"..tn)
--fileClose(fh)
function outputLog(text)
if (text and fh) then
local time = getRealTime()
local ts=string.format("%04d%02d%02d%02d%02d%02d> ", time.year+1900, time.month, time.monthday, time.hour, time.minute, time.second)
fileWrite(fh, ts..text..... |