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

Wysłany: 2018-07-31, 10:02


MartinPanZycia

Zielony w LUA






Wiek: 27
Na forum: 3870 dni
Posty: 477
Nick w MP: Rodzaje

Piwa: 877

Respekt: 70,5

Ostrzeżeń: 40%
bindKey("mouse1", "down", function()
    if not getElementData(localPlayer, "gui:listonosz") or getElementData(localPlayer, "gui:listonosz") ~= true then return end
    if isMouseIn(404*px, 447*py, 227*px, 38*py) then
        if getElementData(localPlayer, "praca") then 
                exports["np-notyfikacje"]:noti("Posiadasz aktywn? prac?!")
return end
        zrobione = 0
        triggerServerEvent("create:listonosz", localPlayer)
                exports["np-notyfikacje"]:noti("Rozpoczynasz prac? listonosza")
        showCursor(false)
        setElementData(localPlayer, "gui:listonosz", nil)
        setElementData(localPlayer, "praca", "listonosz")
        for i,v in ipairs(punktyListonosza) do
            local markerList = createMarker(v[1], v[2], v[3]-0.9, "cylinder", 1, 29, 10 ,100)
            local blipList = createBlipAttachedTo(markerList, 41)
            addEventHandler("onClientMarkerHit", markerList, function(hit)
                if hit ~= localPlayer then return end
                if isPedInVehicle(localPlayer) then 
                outputChatBox("Nie mo?esz siedzie? w poje?dzie!", 255, 0, 0) return end
                zrobione = zrobione+1
                destroyElement(source)
                destroyElement(blipList)
                                 exports["np-notyfikacje"]:noti(" wykonano: "..tostring(zrobione).."")
                            local pieniadz = math.random(10, 200)
                          triggerServerEvent("giveMoney", localPlayer, pieniadz)
                if zrobione == #punktyListonosza then
                        triggerServerEvent("hajs:listonosz", localPlayer)
                        setElementData(localPlayer, "praca", nil)
                    return
                end
            end)
        end
    end
        if isMouseIn(404*px, 399*py, 227*px, 38*py) then
    if isMouseIn(404*px, 495*py, 227*px, 38*py) then
        showCursor(false)
        setElementData(localPlayer, "gui:listonosz", nil)
    end
end)


by?a linijka 120 to jest ta na ko?cu

end)


Za pomoc daj? piwka

Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-31, 10:08


maciek3286

LUA Developer






Wiek: 26
Na forum: 5342 dni
Posty: 230
Nick w MP: maciek00

Piwa: 3211

Respekt: 101,5
Respekt: 101,5

bindKey("mouse1", "down", function()
    if not getElementData(localPlayer, "gui:listonosz") or getElementData(localPlayer, "gui:listonosz") ~= true then return end
    if isMouseIn(404*px, 447*py, 227*px, 38*py) then
        if getElementData(localPlayer, "praca") then 
                exports["np-notyfikacje"]:noti("Posiadasz aktywn? prac?!")
return end
        zrobione = 0
        triggerServerEvent("create:listonosz", localPlayer)
                exports["np-notyfikacje"]:noti("Rozpoczynasz prac? listonosza")
        showCursor(false)
        setElementData(localPlayer, "gui:listonosz", nil)
        setElementData(localPlayer, "praca", "listonosz")
        for i,v in ipairs(punktyListonosza) do
            local markerList = createMarker(v[1], v[2], v[3]-0.9, "cylinder", 1, 29, 10 ,100)
            local blipList = createBlipAttachedTo(markerList, 41)
            addEventHandler("onClientMarkerHit", markerList, function(hit)
                if hit ~= localPlayer then return end
                if isPedInVehicle(localPlayer) then 
                outputChatBox("Nie mo?esz siedzie? w poje?dzie!", 255, 0, 0) return end
                zrobione = zrobione+1
                destroyElement(source)
                destroyElement(blipList)
                                 exports["np-notyfikacje"]:noti(" wykonano: "..tostring(zrobione).."")
                            local pieniadz = math.random(10, 200)
                          triggerServerEvent("giveMoney", localPlayer, pieniadz)
                if zrobione == #punktyListonosza then
                        triggerServerEvent("hajs:listonosz", localPlayer)
                        setElementData(localPlayer, "praca", nil)
                    return
                end
            end
        end
        if isMouseIn(404*px, 399*py, 227*px, 38*py) then
    if isMouseIn(404*px, 495*py, 227*px, 38*py) then
        showCursor(false)
        setElementData(localPlayer, "gui:listonosz", nil)
    end
end
end)


[ Dodano: 2018-07-31, 10:08 ]
Spr?buj tak

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
MartinPanZycia
Tagi: loading :: script :: failed :: unexpected :: symbol :: near
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » loading script failed unexpected symbol near ')' 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