Dzie? Dobry/Dobry wiecz?r mam pewien problem, a mianowicie podczas rozpocz?cia napadu mimo i? s? SAPD pokazuje, ?e musi by? na s?u?bie przynajmniej jeden SAPD(nic w debugu nie wywala). Drugi b??d jest taki, jak chce rozpocz?? napad i celuje na ped'a wywala taki b??d w debugu: https://imgur.com/a/xDvlL8A
local sx, sy = guiGetScreenSize()
local zoom = 1920/sx
-- // Przydatna funkcja do animacji
local anims, animID = { }, 0
local rendering = false
local function renderAnimations( )
local now = getTickCount( )
for k,v in ipairs(anims) do
v.onChange(interpolateBetween(v.from, 0, 0, v.to, 0, 0, (now - v.start) / v.duration, v.easing))
if now >= v.start+v.duration then
table.remove(anims, k)
if type(v.onEnd) == "function" then
v.onEnd( )
end
if #anims == 0 then
rendering = false
removeEventHandler("onClientRender", root, renderAnimations)
end
end
end
end
function animate(f, t, easing, duration, onChange, onEnd)
if #anims == 0 and not rendering then
addEventHandler("onClientRender", root, renderAnimations)
rendering = true
end
assert(type(f) == "number", "Bad argument @ 'animate' [expected number at arg...