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

Wysłany: 2021-08-27, 07:18


daybreakx3







Wiek: 27
Na forum: 2412 dni
Posty: 11
Nick w MP: Daybreak

Piwa: 2

Respekt: 50

Witam mam taki problem ?e jak klikam wymiana i chce wymieni? pkt na premium to mi zabiera 5 ?eton?w i to tak wygl?da jak bym klika? w jeden przycisk 5 razy... pom?g? by kto? to poprawi?? bo walcze z tym juz od 2 dni i nie mog? tego znale??, bardzo bym by? wdzi?czny... pozdrawiam

elseif mysz(screenW 0.4008screenH 0.6133screenW 0.0542screenH 0.0352) and okno3 == false and okno4 == true then
elseif mysz(822*px585*py126*px38*py) and gielda == true then
            triggerServerEvent("wymien:pp"localPlayerile)
            if niemozesz == true then return end
            local cena guiGetText(cenapp)
            local ilosc guiGetText(liczbapp)
            if not tonumber(iloscthen return end
            if not tonumber(cenathen return end
            if cena:len() > 6 then return end
            if cena == "Cena" then return end
            if ilosc == "Ilosc" then return end
            if cena == "" then return end
            if ilosc == "" then return end
            if tonumber(cena) < 1 then return end
            if tonumber(ilosc) < 1 then return end
            if string.find(cena'E'then return end
            if string.find(cena'e'then return end
              if string.find(cena'r'then return end
            if tonumber(ilosc) > tonumber(getElementData(localPlayer"pp")) then exports["smta_base_notifications"]:noti("Nie posiadasz wystarczajacej ilosc DP""error") return end
            triggerServerEvent("wystaw:pp"localPlayertonumber(ilosc), tonumber(cena))
            triggerServerEvent("pokaz:gieldepp"localPlayer)
            niemozesz true
            setTimer(function()
                niemozesz false
            end5001)
        elseif mysz(scale_x(930), scale_y(207), scale_x(16), scale_y(16)) and okno3 == false and okno4 == true then
            okno3 true
            okno4 false
        elseif mysz(screenW 0.3697screenH 0.6862screenW 0.0864screenH 0.0391) and gprem == true and okno4 == false and okno2 == false then
            kupno true
            gielda false
            wymiana false
            guiSetVisible(liczbappfalse)
            guiSetVisible(cenappfalse)
        elseif mysz(screenW 0.4561screenH 0.6862screenW 0.0864screenH 0.0391) and gprem == true and okno4 == false and okno2 == false  then
            kupno false
            gielda false
            wymiana true
            okno3 true
            okno4 false
            guiSetVisible(liczbappfalse)
            guiSetVisible(cenappfalse)
        elseif mysz(screenW 0.5425screenH 0.6862screenW 0.0871screenH 0.0391) and gprem == true and okno4 == false and okno2 == false  then
            kupno false
            gielda true
            wymiana false
            triggerServerEvent("pokaz:gieldepp"localPlayer)
            guiSetVisible(liczbapptrue)
            guiSetVisible(cenapptrue)
        end
    end
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-08-28, 12:23


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Ale nagmatwane, poka? event onClientClick.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-08-28, 13:37


daybreakx3







Wiek: 27
Na forum: 2412 dni
Posty: 11
Nick w MP: Daybreak

Piwa: 2

Respekt: 50

sirphantasm,
addEventHandler"onClientClick"getRootElement(), function (btnstate)
    if btn == 'left' and state == 'down' then
        for iv in ipairs(premki) do
        for iv in ipairs(premki) do
            local dodatekY = (scale_y(70))*(i-1)
            if mysz(screenW 0.5593screenH 0.3060+dodatekYscreenW 0.0542screenH 0.0352) and okno1 == true and okno2 == false and kupno == true then
                okno1 false
                okno2 true
                guiSetVisible(edittrue)
                if v[1] == "1 PUNKT DIAMOND" then
                    ile 1
                    tekst "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: #B92B271\n\n#969696Tre&#197;&#8250;?&#8225; sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2772480\n#969696Koszt: #B92B272,46 PLN\n\n#969696Poni&#197;&#188;ej wpisz kod zwrotny"
                    tekst2 "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: 1\n\nTre&#197;&#8250;?&#8225; sms: MSMS.SMTA\nNumer: 72480\nKoszt: 2,46 PLN\n\nPoni&#197;&#188;ej wpisz kod zwrotny"
                elseif v[1] == "3 PUNKTY DIAMOND" then
                    ile 3
                    tekst "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: #B92B273\n\n#969696Tre&#197;&#8250;?&#8225; sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2774480\n#969696Koszt: #B92B274,92 PLN\n\n#969696Poni&#197;&#188;ej wpisz kod zwrotny"
                    tekst2 "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: 3\n\nTre&#197;&#8250;?&#8225; sms: MSMS.SMTA\nNumer: 74480\nKoszt: 4,92 PLN\n\nPoni&#197;&#188;ej wpisz kod zwrotny"
                elseif v[1] == "7 PUNKT&#195;&#8220;W DIAMOND" then
                    ile 7
                    tekst "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: #B92B277\n\n#969696Tre&#197;&#8250;?&#8225; sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2776480\n#969696Koszt: #B92B277.38 PLN\n\n#969696Poni&#197;&#188;ej wpisz kod zwrotny"
                    tekst2 "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: 7\n\nTre&#197;&#8250;?&#8225; sms: MSMS.SMTA\nNumer: 76480\nKoszt: 7.38 PLN\n\nPoni&#197;&#188;ej wpisz kod zwrotny"
                elseif v[1] == "14 PUNKT&#195;&#8220;W DIAMOND" then
                    ile 14
                    tekst "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: #B92B2714\n\n#969696Tre&#197;&#8250;?&#8225; sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2779480\n#969696Koszt: #B92B2711.07 PLN\n\n#969696Poni&#197;&#188;ej wpisz kod zwrotny"
                    tekst2 "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: 14\n\nTre&#197;&#8250;?&#8225; sms: MSMS.SMTA\nNumer: 79480\nKoszt: 11.07 PLN\n\nPoni&#197;&#188;ej wpisz kod zwrotny"
                elseif v[1] == "30 PUNKT&#195;&#8220;W DIAMOND" then
                    ile 30
                    tekst "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: #B92B2730\n\n#969696Tre&#197;&#8250;?&#8225; sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2791400\n#969696Koszt: #B92B2717.22 PLN\n\n#969696Poni&#197;&#188;ej wpisz kod zwrotny"
                    tekst2 "Ilo&#197;&#8250;?&#8225; PUNKT&#195;&#8220;W DIAMOND: 30\n\nTre&#197;&#8250;?&#8225; sms: MSMS.SMTA\nNumer: 91400\nKoszt: 17.22 PLN\n\nPoni&#197;&#188;ej wpisz kod zwrotny"
                end
            end
        end
        if wymiana == true then
            for iv in ipairs(premki2) do
                local dodatekY = (scale_y(70))*(i-1)
                if mysz(screenW 0.5593screenH 0.3060+dodatekYscreenW 0.0542screenH 0.0352) and okno3 == true and okno4 == false and wymiana == true then
                    okno3 false
                    okno4 true
                    if v[1] == "KONTO DIAMOND 1 DZIE&#197;&#402;" then
                        ile 1
                        tekst "Ilo&#197;&#8250;?&#8225; dni konta diamond: #B92B271\n\n#969696Koszt: #B92B271 DP"
                        tekst2 "Ilo&#197;&#8250;?&#8225; dni konta diamond: 1\n\nKoszt: 1 DP"
                    elseif v[1] == "KONTO DIAMOND 3 DNI" then
                        ile 3
                        tekst "Ilo&#197;&#8250;?&#8225; dni konta diamond: #B92B273\n\n#969696Koszt: #B92B273 DP"
                        tekst2 "Ilo&#197;&#8250;?&#8225; dni konta diamond: 3\n\nKoszt: 3 DP"
                    elseif v[1] == "KONTO DIAMOND 7 DNI" then
                        ile 7
                        tekst "Ilo&#197;&#8250;?&#8225; dni konta diamond: #B92B277\n\n#969696Koszt: #B92B277 DP"
                        tekst2 "Ilo&#197;&#8250;?&#8225; dni konta diamond: 7\n\nKoszt: 7 DP"
                    elseif v[1] == "KONTO DIAMOND 14 DNI" then
                        ile 14
                        tekst "Ilo&#197;&#8250;?&#8225; dni konta diamond: #B92B2714\n\n#969696Koszt: #B92B2714 DP"
                        tekst2 "Ilo&#197;&#8250;?&#8225; dni konta diamond: 14\n\nKoszt: 14 DP"
                    elseif v[1] == "KONTO DIAMOND 30 DNI" then
                        ile 30
                        tekst "Ilo&#197;&#8250;?&#8225; dni konta diamond: #B92B2730\n\n#969696Koszt: #B92B2730 DP"
                        tekst2 "Ilo&#197;&#8250;?&#8225; dni konta diamond: 30\n\nKoszt: 30 DP"
                    end
                end
            end
        end
        if gielda == true then
            local x 0
            for iv in ipairs(tabgielda) do
                if >= and <= n then 
                    x x+1
                    local dodatekY = (55*px)*(x-1)
                    if mysz(screenW 0.6362screenH 0.3229+dodatekYscreenW 0.0542screenH 0.0352) and gielda == true and gprem == true and okno4 == false then
                        if v["nick"] == getPlayerName(localPlayerthen
                            triggerServerEvent("usun:pp"localPlayerv["id"])
                            triggerServerEvent("pokaz:gieldepp"localPlayer)
                        else
                            triggerServerEvent("kup:pp"localPlayerv["id"])
                            triggerServerEvent("pokaz:gieldepp"localPlayer)
                        end
                    end
                end
            end
        end
        local dodatekY = (scale_y(70))*(i-1)
        if mysz(scale_x(930), scale_y(207), scale_x(16), scale_y(16)) and okno1 == false and okno2 == true then
            okno1 true
            okno2 false
            guiSetVisible(editfalse)
        elseif mysz(screenW 0.5593screenH 0.6133screenW 0.0542screenH 0.0352) and okno1 == false and okno2 == true then
            if guiGetText(edit) == "" or guiGetText(edit) == "Kod, kt?&#178;&#185;?otrzymales w sms'ie" then return end
            triggerServerEvent("sprawdzPremium"localPlayerguiGetText(edit), ile)
        elseif mysz(screenW 0.4008screenH 0.6133screenW 0.0542screenH 0.0352) and okno3 == false and okno4 == true then
        elseif mysz(822*px585*py126*px38*py) and gielda == true then
            triggerServerEvent("wymien:pp"localPlayerile)
            if niemozesz == true then return end
            local cena guiGetText(cenapp)
            local ilosc guiGetText(liczbapp)
            if not tonumber(iloscthen return end
            if not tonumber(cenathen return end
            if cena:len() > 6 then return end
            if cena == "Cena" then return end
            if ilosc == "Ilosc" then return end
            if cena == "" then return end
            if ilosc == "" then return end
            if tonumber(cena) < 1 then return end
            if tonumber(ilosc) < 1 then return end
            if string.find(cena'E'then return end
            if string.find(cena'e'then return end
              if string.find(cena'r'then return end
            if tonumber(ilosc) > tonumber(getElementData(localPlayer"pp")) then exports["smta_base_notifications"]:noti("Nie posiadasz wystarczajacej ilosc DP""error") return end
            triggerServerEvent("wystaw:pp"localPlayertonumber(ilosc), tonumber(cena))
            triggerServerEvent("pokaz:gieldepp"localPlayer)
            niemozesz true
            setTimer(function()
                niemozesz false
            end5001)
        elseif mysz(scale_x(930), scale_y(207), scale_x(16), scale_y(16)) and okno3 == false and okno4 == true then
            okno3 true
            okno4 false
        elseif mysz(screenW 0.3697screenH 0.6862screenW 0.0864screenH 0.0391) and gprem == true and okno4 == false and okno2 == false then
            kupno true
            gielda false
            wymiana false
            guiSetVisible(liczbappfalse)
            guiSetVisible(cenappfalse)
        elseif mysz(screenW 0.4561screenH 0.6862screenW 0.0864screenH 0.0391) and gprem == true and okno4 == false and okno2 == false  then
            kupno false
            gielda false
            wymiana true
            okno3 true
            okno4 false
            guiSetVisible(liczbappfalse)
            guiSetVisible(cenappfalse)
        elseif mysz(screenW 0.5425screenH 0.6862screenW 0.0871screenH 0.0391) and gprem == true and okno4 == false and okno2 == false  then
            kupno false
            gielda true
            wymiana false
            triggerServerEvent("pokaz:gieldepp"localPlayer)
            guiSetVisible(liczbapptrue)
            guiSetVisible(cenapptrue)
        end
    end
end
end)



link do plikow https://megawrzuta.pl/download/2e1f2172d4358ce481f4122125b00cb0.html

Postaw piwo autorowi tego posta
 

 
Tagi: coś :: nie :: tak :: kodem :: zabiera :: żetonów :: podczas :: wymiany
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Odpowiedz do tematu

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