Witam chodzi o to,?e pojawia si? co? takiego jak wida? na za??czonych screenach jak wpisze w konsole debugscript 3,wiem ?e to nic tak naprawde nie psuje ale wol? mie? czystszy debuscript ni? pe?ny ostrze?e?.
Linijki w dash_c.lua:
[code]1249||| function openMapInfo()
if mapInfos.data[1] ~= "" and mapInfos.data[3] ~= "" then
mapInfos.count = 1
mapInfos.tick = getTickCount()
if isTimer(mapInfos.timer) then killTimer(mapInfos.timer) end
mapInfos.timer = setTimer(changeInfoData,2000,8)
hideAllBox()
removeEventHandler("onClientRender",getRootElement(),drawMapInfo)
addEventHandler("onClientRender",getRootElement(),drawMapInfo)
end
end
bindKey("F6","down",openMapInfo)
function changeInfoData()
mapInfos.tick = getTickCount()
mapInfos.count = mapInfos.count + 1
if mapInfos.count >= 8 then removeEventHandler("onClientRender",getRootElement(),drawMapInfo) end
end
function drawMapInfo()
local tick = getTickCount() - mapInfos.tick
local progress = tick/700
if progress >= 1 then progress = 1 end
local alpha = interpolateBetween(0,0,0,255,0,0,progress,"Linear")
dxDrawText(mapInfos.titles[mapInfos.count],0,sY-dxGetFontHeight(3*scale,"default-bold")-dxGetFontHeight(5*scale,"default-bold"),sX,sY-dxGetFontHeight(3*scale,"default-bold"),tocolor(141,182,205,alpha),3*scale,"default-bold","center","center&qu... |