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

Wysłany: 2018-12-10, 19:37


Krzemo1234







Wiek: 26
Na forum: 3751 dni
Posty: 387
Nick w MP: Krzemo

Piwa: 16

Respekt: 40

Posiadam dwa b??dy [AddEventHandler] i nie wiem czym s? spowodowane

ss: https://imgur.com/a/zI8bII7

Blife-zasoby

local screenWscreenH guiGetScreenSize()
local czas getTickCount()
local rot 0
local font dxCreateFont("Fonts/font.ttf"11)

function isEventHandlerAddedsEventNamepElementAttachedTofunc )
    if
        typesEventName ) == 'string' and
        isElementpElementAttachedTo ) and
        typefunc ) == 'function'
    then
        local aAttachedFunctions getEventHandlerssEventNamepElementAttachedTo )
        if typeaAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then
            for iv in ipairsaAttachedFunctions ) do
                if == func then
                    return true
                end
            end
        end
    end
    return false
end

function loadingDownload()

       local Alpha interpolateBetween(000255220200, ((getTickCount() - czas) / 1000), "Linear")
  local r,g,b,a=interpolateBetween(0,150,255,255,255,255,(getTickCount())/6500,"SineCurve")
  local kr1kr2kr3 interpolateBetween(-0.26300.036800.253000, (getTickCount())/6500,"SineCurve")
    rot rot 360 and or rot 5
        dxDrawImage(screenW 0.0000screenH 0.0000screenW 1.0400screenH 1.0000"Img/background.png"000tocolor(255255255Alpha), false)
        dxDrawImage(screenW 0.4820screenH 0.7710screenW 0.0195screenH 0.0340"Img/loading.png"rot00tocolor(255255255Alpha), false)
        dxDrawText("Pobieranie zasob?w"screenW 0.6909screenH 1.1801screenW 0.2946screenH 0.4596tocolor(rgbAlpha), 1.00font"center""center"falsefalsefalsefalsefalse)

end


function loadingObjects()

       local Alpha interpolateBetween(000255220200, ((getTickCount() - czas) / 1000), "Linear")
  local r,g,b,a=interpolateBetween(40,40,40,255,255,255,(getTickCount())/6500,"SineCurve")
  local kr1kr2kr3 interpolateBetween(-0.26300.036800.253000, (getTickCount())/6500,"SineCurve")
    rot rot 360 and or rot 5
        dxDrawImage(screenW 0.0000screenH 0.0000screenW 1.0400screenH 1.0000"Img/background.png"000tocolor(255255255Alpha), false)
        dxDrawImage(screenW 0.0230screenH 0.0210screenW 0.0195screenH 0.0340"Img/loading.png"rot00tocolor(255255255Alpha), false)
        dxDrawText("Wczytywanie zasob?w"screenW * -0.0709screenH * -0.3801screenW 0.2946screenH 0.4596tocolor(rgbAlpha), 1.00font"center""center"falsefalsefalsefalsefalse)

end

function checkingIsDownload()
    if isTransferBoxActive() == true then
        addEventHandler("onClientRender"rootloadingDownload)
    else
        if isEventHandlerAdded("onClientRender"rootloadingDownloadthen
            removeEventHandler("onClientRender"rootloadingDownload)
        end
    end
end
setTimer(checkingIsDownload10000)

function checkingIsComingObject()
    if getElementData(root"load:objects"then
        addEventHandler("onClientRender"rootloadingObjects)
    else
        if isEventHandlerAdded("onClientRender"rootloadingObjectsthen
            removeEventHandler("onClientRender"rootloadingObjects)
        end
    end
end
setTimer(checkingIsComingObject10000)

addEventHandler("onClientRender"rootloadingDownload)




1

local screenWscreenH guiGetScreenSize()
local boolLimitWiadomosci false;
local limitWiadomosci 5;
local czasTrwaniaWiadomosci 5000;
local idDzwieku 11;
local czcionka ":Blife-sweepery/foncik.ttf";

local dozwolonaCzcionka false;

local wiadomosci = {
}

function drawMessages()
    if #wiadomosci > 0 then
        for i,v in ipairswiadomosci ) do 
            messageNoHex string.gsub(wiadomosci[i], "#%x%x%x%x%x%x""")
            dxDrawText(messageNoHex, (screenW 0.3125) + 1, (screenH 0.9444) + - (50), (screenW 0.6881) + 1, (screenH 0.9667) + 1tocolor(000255), 1.20czcionka"center""center"falsetruetruetruefalse)
            dxDrawText(wiadomosci[i], screenW 0.3125screenH 0.9444 - (50), screenW 0.6881screenH 0.9667tocolor(255255255255), 1.20czcionka"center""center"falsetruetruetruefalse)
        end
    end
end


addEvent"addNotification"true )

addEventHandler"addNotification"localPlayeroutputNotificationBox )
addEventHandler"onClientResourceStart"getRootElement( ), checkFont )
addEventHandler"onClientRender"rootdrawMessages )


Podpis
Jeśli ci pomogłem zostaw zimne :piwo:
Ostatnio zmieniony przez Krzemo1234 2018-12-10, 20:08, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-10, 19:40


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

To mo?e podaj te b??dy :shock:

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-12, 16:04


Krzemo1234







Wiek: 26
Na forum: 3751 dni
Posty: 387
Nick w MP: Krzemo

Piwa: 16

Respekt: 40

https://imgur.com/a/zI8bII7 Sorka zapomnia?em by?em przekonany ,?e to zrobi?em

Podpis
Jeśli ci pomogłem zostaw zimne :piwo:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-12, 20:31


mtm

</3






Wiek: 26
Na forum: 3715 dni
Posty: 181

Piwa: 252

Respekt: 70

po prostu przypinasz event do funkcji kt?rej nie ma

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-12, 22:18


Krzemo1234







Wiek: 26
Na forum: 3751 dni
Posty: 387
Nick w MP: Krzemo

Piwa: 16

Respekt: 40

lecz dalej problem tu

function checkingIsDownload()

    if isTransferBoxActive() == true then
        addEventHandler("onClientRender"rootloadingDownload)
    else
    
        if isEventHandlerAdded("onClientRender"rootloadingDownloadthen
            removeEventHandler("onClientRender"rootloadingDownload)
        end
    end
end
setTimer(checkingIsDownload10000)


Podpis
Jeśli ci pomogłem zostaw zimne :piwo:
Postaw piwo autorowi tego posta
 

 
Tagi: addenenthandler
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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