Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: wyświetlające
1. Nie wyświetlające się notyfikacje
Witam, mam problem ot?? nie wy?wietlaj? si? w og?le notyfikacje. Poni?ej macie kody do clienta i servera.

client:
[lua]local screenX,screenY = guiGetScreenSize ()
local zoom = 1
if screenX < 1920 then
zoom = math.min(2, 1920/screenX)
end

local notyfikacje = {}

local font = dxCreateFont("files/OpenSans-Light.ttf",13)

function renderNotif ()
for index, value in ipairs (notyfikacje) do
if index < 5 and notyfikacje[index] then
local opis = notyfikacje[index].opis
local start = notyfikacje[index].czas
local stan = notyfikacje[index].stan
local obecnystan = notyfikacje[index].obecnystan
if obecnystan == true then
local now = getTickCount()
local endTime = start + 500
local elapsedTime = now - start
local duration = endTime - start
local progress = elapsedTime / duration
x1,_,_ = interpolateBetween(0,0,0,600,0,0,progress,"OutQuad")
x2,_,_ = interpolateBetween(2000,0,0,1320,0,0,progress,"OutQuad")
else
local now = getTickCount()
local endTime = start + 500
local elapsedTime = now - start
local duration = endTime - start
local progress = elapsedTime / duration
x1,_,_ = interpolateBetween(600,0,0,0,0,0,progress,"OutQuad")
x2,_,_ = interpolateBetween(1320,0,0,2300,0,0,progress,"OutQuad")
end
dxDrawImage(screenX-x1/zoom,(230+(index*100))/zoom,522/zoom,107/zoom,"files/"..stan..".png"...