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

Wysłany: 2016-07-19, 12:57


NeroNix







Wiek: 27
Na forum: 3614 dni
Posty: 69

Piwa: 1

Respekt: 40,5

Ostrzeżeń: 100%
Wiem ,?e kto? ju? kiedy? rozpocz?? ten temat lecz nie zosta? on rozwi?zany.
Mam problem z premium w pracach.
B??d w DB3
Ot?? wywala w db3 ten b??d i nie dzia?a nic.
Dodam, ?e to jest po stronie clienta:

bindKey("e""down", function()
    if not isElementWithinMarker(localPlayerpracathen return end
    if not exports["premium"]:isPremium(localplayerthen
    return
    end

Stawiam :piwo: i daj? R*

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-19, 15:47


GabWas







Wiek: 24
Na forum: 3881 dni
Posty: 289
Nick w MP: GabWas

Piwa: 65

Respekt: 231,5
Respekt: 231,5Respekt: 231,5

Zgaduj?, ?e to dlatego, ?e napisa?e? "localplayer" zamiast "localPlayer".

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-19, 17:41


NeroNix







Wiek: 27
Na forum: 3614 dni
Posty: 69

Piwa: 1

Respekt: 40,5

Ostrzeżeń: 100%
GabWas,
Niestety, to te? nie pomog?o ;(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-19, 17:44


GabWas







Wiek: 24
Na forum: 3881 dni
Posty: 289
Nick w MP: GabWas

Piwa: 65

Respekt: 231,5
Respekt: 231,5Respekt: 231,5

Ach no tak, zapomnia?e? doda? end'u i zamkn?? nawiasu.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-19, 17:46


NeroNix







Wiek: 27
Na forum: 3614 dni
Posty: 69

Piwa: 1

Respekt: 40,5

Ostrzeżeń: 100%
GabWas,
pe?ny kod..

bindKey("e""down", function()
    if not isElementWithinMarker(localPlayerpracathen return end
    if not exports["premium"]:isPremium(localPlayerthen
        --outputChatBox(" Ta praca dostepna jest tylko dla konta premium.")
    return
    end
    if not getElementData(localPlayer"gracz_praca"then
        local losuj math.random(2#miejscamagazynier)
        setElementData(localPlayer"gracz_praca"true)
        --outputChatBox("* Od??? skrzynk? na p??k?.")
        setPedAnimation localPlayer"CARRY""crry_prtial"1,true )

        local skrzynia createObject(1271000)
        attachElements skrzynialocalPlayer00.80.5)
        
        local cel createMarker(miejscamagazynier[losuj][1], miejscamagazynier[losuj][2], miejscamagazynier[losuj][3]-1.0"checkpoint"1.025500)
        local blip createBlipAttachedTo(cel41)
        
        addEventHandler("onClientMarkerHit"cel, function(elmd)
            if not md or getElementType(el) ~= "player" then return end
            if el ~= localPlayer then return end

            if getPedOccupiedVehicle(elthen
            
            addEventHandler("onClientRender",root,render1)
                setTimer(renderstop1,1000,1)
                return
            end


            destroyElement(blip)
            setElementFrozen(eltrue)
               addEventHandler("onClientRender",root,render4)
            setTimer(renderstop4,2500,1)
            setTimer(function()
                setElementFrozen(elfalse)
                outputChatBox("* Po?o?y?e? skrzynk?.")
                destroyElement(skrzynia)
                destroyElement(cel)
                setPedAnimation(localPlayerfalse)
                setElementData(el"gracz_praca"false)
                triggerServerEvent("givePlayerMoney"el250)
                addEventHandler("onClientRender",root,render3)
                setTimer(renderstop3,2500,1)
            end40001)
        end)
    else
        outputChatBox("* Posiadasz aktywn? prac?.")
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-19, 20:43


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

NeroNix, eksportujesz funkcje kt?rej nie ma/nie ma w??czanej, lub taki skrypt nie jest w??czony/lub go nie ma.

Postaw piwo autorowi tego posta
 

 
Tagi: premium :: praca
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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