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

Wysłany: 2019-06-30, 20:05


konoszovsky







Wiek: 24
Na forum: 3080 dni
Posty: 33
Nick w MP: konosz615

Piwa: 5

Respekt: 60

Witam, prosz? o szybk? pomoc, chodzi o to ?e jak wjad? w marker montazu podswietlenia licznika laguje i nie pokazuje przyciskow z kolorami pod cena podswietlenia. Daje tu screena na ktorym rowniez widac blad w DB3: https://imgur.com/a/sUOHkZz

tutaj macie kod montowanie_c gdzie znajduje sie ten error.
--[[
--[[
Autor SkryptuNexBoy
Zakaz Usuwania Autora i u?ywania tego kodu bemojej zgody!
2016r
]]--

local screenWscreenH guiGetScreenSize()
panelL false

function PanelPodswietlenie()
local AlphaAlpha2 interpolateBetween(0002552090, ((getTickCount() - tick) / 2500), "Linear"local r,g,b=interpolateBetween(255,255,255,20,250,0,(getTickCount()-tick)/1100,"SineCurve")
local r2,g2,b2=interpolateBetween(255,255,255,255,0,0,(getTickCount()-tick)/1100,"SineCurve")
exports["buttons"]:createCustomWindow("Montowanie Podswietlania licznika"screenW 0.2513screenH 0.2083screenW 0.5096screenH 0.5859tocolor(255255255255), false)
exports["buttons"]:createCustomButton("Zamknij Okno"screenW 0.4500screenH 0.7015screenW 0.1094screenH 0.0600tocolor(255,255,255,255), false)
exports["buttons"]:createCustomText("Aby zamontowa? kolor naci?nij na pole z danym kolorem!"screenW 0.4553screenH 0.1239screenW 0.5552screenH 0.5102tocolor(255255255255), 1.00"default""center""center"falsefalsefalsefalsefalse)
dxDrawImage(screenW 0.2438screenH 0.5161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(3,167,0255), false)
dxDrawImage(screenW 0.4004screenH 0.5161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(255,255,0255), false)
dxDrawImage(screenW 0.5608screenH 0.5161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(0,92,255255), false)
dxDrawImage(screenW 0.2438screenH 0.4161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(255,96,0255), false)
dxDrawImage(screenW 0.4004screenH 0.4161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(255,0,255255), false)
dxDrawImage(screenW 0.5608screenH 0.4161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(0,255,255255), false)
dxDrawImage(screenW 0.2438screenH 0.3161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(138,0,255255), false)
dxDrawImage(screenW 0.4004screenH 0.3161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(255,0,0255), false)
dxDrawImage(screenW 0.5608screenH 0.3161screenW 0.2182screenH 0.1966,"przycisk.png"000tocolor(0,0,255255), false)
dxDrawText("Koszt: 37 500PLN"screenW 0.2818screenH 0.5808screenW 0.4114screenH 0.5586tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)     
dxDrawText("Koszt: 18 500PLN"screenW 0.4385screenH 0.5895screenW 0.5681screenH 0.5573tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)   
dxDrawText("Koszt: 31 500PLN"screenW 0.6010screenH 0.5895screenW 0.7306screenH 0.5573tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)  
dxDrawText("Koszt: 22 500PLN"screenW 0.2818screenH 0.3808screenW 0.4114screenH 0.5586tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)
dxDrawText("Koszt: 28 900PLN"screenW 0.4385screenH 0.3895screenW 0.5681screenH 0.5573tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)
dxDrawText("Koszt: 38 500PLN"screenW 0.6010screenH 0.3895screenW 0.7306screenH 0.5573tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalsedxDrawText("Koszt: 35 500PLN"screenW 0.2818screenH 0.1808screenW 0.4114screenH 0.5586tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)
dxDrawText("Koszt: 40 000PLN"screenW 0.4385screenH 0.1895screenW 0.5681screenH 0.5573tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)
dxDrawText("Koszt: 39 500PLN"screenW 0.6010screenH 0.1895screenW 0.7306screenH 0.5573tocolor(255255255255), 1.00"default-bold""center""center"falsefalsefalsefalsefalse)                 
end

addEvent("PokazGuiMontowaniePodswietlenie"true)
addEventHandler("PokazGuiMontowaniePodswietlenie"resourceRoot, function()
local pojazd getPedOccupiedVehicle(localPlayer)
if getVehicleController(pojazd) ~= localPlayer then return end
if panelL == false then
      addEventHandler("onClientRender",root,PanelPodswietlenie)
                tick getTickCount()
                panelL true
                playSound("Dzwiek/PiP.mp3")
                showCursor (true)  
    end
end)

function ZamknijOkno(buttonstate)
    if panelL and button == "left" and state == "down" then
           if cursorPosition(screenW 0.4500screenH 0.7015screenW 0.1094screenH 0.0600then
                        playSound("Dzwiek/ST.mp3")
                        removeEventHandler("onClientRender",root,PanelPodswietlenie)
                        panelL false
                        showCursor (false) 
         end
    end
end
addEventHandler("onClientClick"getRootElement(), ZamknijOkno)

function ZamontujPodswietlenie(buttonstate)
if panelL and button == "left" and state == "down" then -- PIERWSZY
        if cursorPosition(screenW 0.2826screenH 0.5903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "zielone" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie Zielone!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikZielony"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then -- DRUGI
        if cursorPosition(screenW 0.4392screenH 0.5903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "zolty" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie ???te!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikZolty"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then --  TRZECI
        if cursorPosition(screenW 0.6018screenH 0.5903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "blekit" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie B??kitne!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikBlekitny"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then -- CZWARTY
        if cursorPosition(screenW 0.2826screenH 0.4903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "pom" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie Pomara?czowe!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikPomaranczowy"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then -- PIATY
        if cursorPosition(screenW 0.4392screenH 0.4903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "roz" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie R??owe!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikRozowy"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then -- SZOSTY
        if cursorPosition(screenW 0.6018screenH 0.4903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "turkus" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie Turkusowe!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikTurkusowy"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then -- SIODMY
        if cursorPosition(screenW 0.2826screenH 0.3903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "fiolet" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie Fioletowe!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikFioletowy"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then -- OSMY
        if cursorPosition(screenW 0.4392screenH 0.3903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "czerw" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie Czerwone!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikCzerwony"localPlayer)
   end
end
if panelL and button == "left" and state == "down" then -- DZIEWIATY
        if cursorPosition(screenW 0.6018screenH 0.3903screenW 0.1288screenH 0.0547then
            local vehicle getPedOccupiedVehicle(localPlayer)
            local Kolor getElementData(vehicle"licznik:kolor") or "Zwykly"
    if Kolor == "nieb" then
        outputChatBox("✘ Ju? posiadasz zamontowane pod?wietlenie Niebieskie!"25500)
   return
end
            playSound("Dzwiek/ST.mp3") 
            triggerServerEvent ("DajLicznikNiebieski"localPlayer)
   end
end
end
addEventHandler("onClientClick"getRootElement(), ZamontujPodswietlenie)

function cursorPosition(xywh)
    if (not isCursorShowing()) then
        return false
    end
    local mxmy getCursorPosition()
    local fullxfully guiGetScreenSize()
    cursorxcursory mx*fullxmy*fully
    if cursorx and cursorx and cursory and cursory h then
        return true
    else
        return false
    end
end

function filedelet ()
if fileExists("Montowanie_c.lua"then
   fileDelete("Montowanie_c.lua")
 end
end
addEventHandler("onClientResourceStart"getResourceRootElement(getThisResource()), filedelet)
addEventHandler("onClientPlayerQuit"getRootElement(), filedelet)
addEventHandler("onClientPlayerJoin"getRootElement(), filedelet)





Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-06-30, 21:25


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Brak obrazka przycisk.png, przeczyta?e? chocia? tre?? b??du? Nawet t?umacz Google by Ci pom?g? bez problemu.
To nie jest najlepszy pomys? na prowadzenie pseudola jak nawet z tym masz problem (pomijaj?c ju? sam fakt pseudola).

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-06-30, 21:58


konoszovsky







Wiek: 24
Na forum: 3080 dni
Posty: 33
Nick w MP: konosz615

Piwa: 5

Respekt: 60

Dodawalem juz przycisk.png i nie dzialalo, dlatego tu pisze

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-06-30, 22:08


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

W mecie dodany? Poka? j?. Czy plik znajduje si? bezpo?rednio w folderze skryptu?

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
konoszovsky
Wysłany: 2019-06-30, 22:54


konoszovsky







Wiek: 24
Na forum: 3080 dni
Posty: 33
Nick w MP: konosz615

Piwa: 5

Respekt: 60

Dodawa?em przycisk do mety rowniez, ale skrypt calkowicie przestawal dzialac i usunalem przycisk, i bezposrednio w folderze skryptu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-06-30, 23:51


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

"usunalem przycisk" to jest ten przycisk czy nie? Nie rozumiem teraz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-01, 15:01


konoszovsky







Wiek: 24
Na forum: 3080 dni
Posty: 33
Nick w MP: konosz615

Piwa: 5

Respekt: 60

No tak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-01, 16:24


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Wklej tre?? pliku meta.xml

Postaw piwo autorowi tego posta
 

 
Tagi: montowanie :: podswietlenia :: licznika :: swiatel
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