Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-11-01, 17:23


VenturasRPG







Wiek: 32
Na forum: 2774 dni
Posty: 2
Nick w MP: Kangaroo



Respekt: 50

Ostrzeżeń: 100%
DB3:
attempt to perform arithmetic on upvalue 'tick' (a function value)
Nie pokazuje gui.
linijka w kt?rej wyskakuje to:
                   local alph interpolateBetween(00002500, (getTickCount() - tick)/2000"OutQuad")


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-11-01, 17:31


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

posiadasz gdzie? w kodzie funkcje o nazwie 'tick' ?

PS. Czytanie ze zrozumieniem nie boli, wszystko masz opisane w tym b??dzie co jest nie tak :)

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-11-01, 17:37


VenturasRPG







Wiek: 32
Na forum: 2774 dni
Posty: 2
Nick w MP: Kangaroo



Respekt: 50

Ostrzeżeń: 100%
BarteQ03,
Dodawa?em animacje, doda?em aczkolwiek no nie pokazuje logowania, tzn pokazuje ale gui si? nie wy?wietla tylko editboxy i kamera leci.
if getElementData(localPlayer"player:uid"then return end

local root getRootElement()
local blur exports['blur']
local czcionka dxCreateFont("font/1.ttf"25)
local czcionka2 dxCreateFont("font/1.ttf"16)
local czcionka3 dxCreateFont("font/1.ttf"12)
local czcionka4 dxCreateFont("font/1.ttf"10)
 tick getTickCount()
local resourceRoot getResourceRootElement(getThisResource())
local screenWidthscreenHeight guiGetScreenSize()
ogloszenie=[[Witaj na serwerze It's Your World!

Adres forum; mta-its.pl
Adres ts3; iy-w.pl
Wersja serwera; 1.0

W?a?ciciele serwera;
- Rusek
- Shaman
- Kurianusz
- CrosRoad95


CREDITS;
Graphic; © Maker

Copyright © It's Your World
Wszelkie prawa zastrze?one!
]]

local blurStrength 2


local myScreenSource dxCreateScreenSource(screenWidthscreenHeight)
blurShaderblurTec dxCreateShader("shaders/BlurShader.fx")


function renderblur()
    if blur == true then
        dxUpdateScreenSource(myScreenSource)

        dxSetShaderValue(blurShader"ScreenSource"myScreenSource);
        dxSetShaderValue(blurShader"BlurStrength"blurStrength);
        dxSetShaderValue(blurShader"UVSize"screenWidthscreenHeight);

        dxDrawImage(00screenWidthscreenHeightblurShader)
    end
end
addEventHandler("onClientRender"rootrenderblur)

addEventHandler("onClientResourceStop"resourceRoot,
function()
    if (blurShader) and blur then
        destroyElement(blurShader)
        blurShader nil
    end
end)

--x,y=2075.74,-1187.70-- my width
--intro_step=math.random(0,850)

local sx,sy=guiGetScreenSize()
local data={ showed=nilbutton={}, info=nilmisc=niltick2=getTickCount() }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
    if not isCursorShowing() then return end
    cx,cy=getCursorPosition()
    cx,cy=cx*sx,cy*sy
    if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
        return true,cx,cy
    else
        return false
    end
end
local dist 400
local angler 0
function getPointFromDistanceRotation(xydistangler)
    local a math.rad(270 angler)
    local dx math.cos(a) * dist;
    local dy math.sin(a) * dist;
    return x+dxy+dy;
end

function getCenter(sx,sy)
    local screenWscreenH guiGetScreenSize()
    local x= (screenW sx) /2,(screenH sy) /2
    return xy
end
posx,posy=getCenter(740,462)
function getCenter(sx,sy)
    local screenWscreenH guiGetScreenSize()
    local x= (screenW sx) /2,(screenH sy) /2
    return xy
end
posxx,posyy=getCenter(365,30)

mojeW,mojeH 1366768
sW,sH guiGetScreenSize()
w= (sW/mojeW), (sH/mojeH)

local x,guiGetScreenSize() 
local f 1324 
local nY y*function roundedRectangle(xywhcolor)
  dxDrawRectangle(xywhcolorfalse)
  dxDrawRectangle(2141colorfalse)
  dxDrawRectangle(2h41colorfalse)
  dxDrawRectangle(1214colorfalse)
  dxDrawRectangle(w214colorfalse)
end

aktualnie="logowanie"
function renderLoginBox()
    setTime(6,0)
    blur false
                   local alph interpolateBetween(00002500, (getTickCount() - tick)/2000"OutQuad")
    if aktualnie=="logowanie" then
                   dxDrawImage(0*w0*h1280*w800*h"logowaniep.png"000tocolor(255255255alph), false)
    elseif aktualnie=="rejestracja" then
                  dxDrawImage(0*w0*h1280*w800*h"rejestracjap.png"000tocolor(255255255alph), false)
    end

    if getTickCount()<data.tick2 then
        dxDrawText(data.info1130*w330*h350*w175*htocolor(25500255), 1.00czcionka4"center""center"falsetruefalsefalsefalse)
    end
    local x,y=getPointFromDistanceRotation(-1351.51514.52distangler)
    setCameraMatrix(x,y,80+0.9,1207.76, -1249.4980+0.9)
    angler=(angler+0.1)
end





addEventHandler("onClientClick"root, function(btn,state)
    if btn=="left" and state=="down" then
        if isMouseIn(618*w435*h172*w60*h) and data.showed then
            if aktualnie=="logowanie" then
                local login=guiGetText(data.button[1])
                local pass=guiGetText(data.button[2])
                if string.len(login) > 22 or string.len(pass) > 22 and string.len(login) < or string.len(pass) < 3 then
                    data.info="Login/haslo musza miec od 3 do 22 znakow."
                    data.tick2=getTickCount()+5000

                    return
                end
                triggerServerEvent("logging:checkAccount"resourceRootloginpass)
            end
            if aktualnie=="rejestracja" then
                local login=guiGetText(data.button[1])
                local pass=guiGetText(data.button[2])
                if string.len(login) > 22 or string.len(pass) > 22 and string.len(login) < or string.len(pass) < 3 then
                    data.info="Login/haslo musza miec od 3 do 22 znakow."
                    data.tick2=getTickCount()+5000

                    return
                end
                triggerServerEvent("logging:newAccount"resourceRootloginpass)
            end
        elseif isMouseIn(783*w260*h172*w60*hthen
            aktualnie="rejestracja"
                   tick getTickCount()
        elseif isMouseIn(545*w260*h172*w60*hthen
            aktualnie="logowanie"
                   tick getTickCount()
        end

    end
end)

addEvent("logging:result"true)
addEventHandler("logging:result"resourceRoot, function(value,info)
    if not info then info="" end
    if value then
        data.showed=false
        showZones(data.misc)

        -- Usuwamy elementy
        local time getRealTime()
        setTime(time.hour,time.minute)
        destroyElement(data.button[1])
        destroyElement(data.button[2])
        removeEventHandler("onClientRender"rootrenderLoginBox)
    else
        data.info=info
        data.tick2=getTickCount()+5000
                                      tick=getTickCount()
    end
end)

addEventHandler("onClientResourceStart"resourceRoot, function()
    showChat(false)
    showCursor(true)
    fadeCamera(true)
    data.showed=true
    setElementAlpha(localPlayer,0)
    data.misc=playSound("misc/intro.mp3",true)
    setSoundVolume(data.misc0.5)
                                      tick=getTickCount()
    showPlayerHudComponent("all",false)
    guiSetInputMode("no_binds_when_editing")
    setElementData(localPlayer,"status","Loguje si?")
    --setElementData(localPlayer,"player:logged",false)
    data.button[1]=guiCreateEdit(552*w350*h157*w27*h""false)
    data.button[2]=guiCreateEdit(752*w350*h157*w27*h""false)
    guiEditSetMasked(data.button[2], true)
    addEventHandler("onClientRender"rootrenderLoginBox)
end)


Postaw piwo autorowi tego posta
 

 
Tagi: animacja :: nie :: działa
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Animacja nie działa Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku