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

Wysłany: 2020-06-23, 21:17


NoNamik







Wiek: 35
Na forum: 2327 dni
Posty: 288
Nick w MP: JestemNoNamem

Piwa: 379

Respekt: 60

Witam otoz mam skrypt z denvermta na organizacje mam wlaczone wszelkie dx editboxy lecz jak klikam f4 i wchodze w panel ustawienia spawnu org to sie nie pokazuje napis USTAW ponizej przesylam kod Nie ma zadnych bledow w db3

local font = dxCreateFont("font1.ttf", 20)

local sx,sy = guiGetScreenSize()
local zoom = 1920/sx

local main = dxCreateTexture("i/main.png")
local arrow = dxCreateTexture("i/arrow.png")
local users = dxCreateTexture("i/users.png")
local dod = dxCreateTexture("i/dod.png")

local organization = {}
local eloelo = {}

local offset = 0

local start = false
local page = 1

local okienko = 0

local wybrane = nil 


local anims, builtins = {}, {"Linear", "InQuad", "OutQuad", "InOutQuad", "OutInQuad", "InElastic", "OutElastic", "InOutElastic", "OutInElastic", "InBack", "OutBack", "InOutBack", "OutInBack", "InBounce", "OutBounce", "InOutBounce", "OutInBounce", "SineCurve", "CosineCurve"}

function table.find(t, v)
    for k, a in ipairs(t) do
        if a == v then
            return k
        end
    end
    return false
end

function animate(f, t, easing, duration, onChange, onEnd)
    assert(type(f) == "number", "Bad argument @ 'animate' [expected number at argument 1, got "..type(f).."]")
    assert(type(t) == "number", "Bad argument @ 'animate' [expected number at argument 2, got "..type(t).."]")
    assert(type(easing) == "string" or (type(easing) == "number" and (easing >= 1 or easing <= #builtins)), "Bad argument @ 'animate' [Invalid easing at argument 3]")
    assert(type(duration) == "number", "Bad argument @ 'animate' [expected function at argument 4, got "..type(duration).."]")
    assert(type(onChange) == "function", "Bad argument @ 'animate' [expected function at argument 5, got "..type(onChange).."]")
    table.insert(anims, {from = f, to = t, easing = table.find(builtins, easing) and easing or builtins[easing], duration = duration, start = getTickCount( ), onChange = onChange, onEnd = onEnd})
    return #anims
end

function destroyAnimation(a)
    if anims[a] then
        table.remove(anims, a)
    end
end

addEventHandler("onClientRender", root, function( )
    local now = getTickCount( )
    for k,v in ipairs(anims) do
        v.onChange(interpolateBetween(v.from, 0, 0, v.to, 0, 0, (now - v.start) / v.duration, v.easing))
        if now >= v.start+v.duration then
            if type(v.onEnd) == "function" then
                v.onEnd( )
            end
            table.remove(anims, k)
        end
    end
end)



function mysz ( x, y, width, height )
    if ( not isCursorShowing( ) ) then
        return false
    end
    local sx, sy = guiGetScreenSize ( )
    local cx, cy = getCursorPosition ( )
    local cx, cy = ( cx * sx ), ( cy * sy )
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
        return true
    else
        return false
    end
end

local k2 = 1
local n2 = 10

function scrollDown2()
    if n2 == 9 then return end
    k2 = k2-1
    n2 = n2-1
end

function scrollUp2()
    if n2 >= #organization then return end
    k2 = k2+1
    n2 = n2+1
end


function gui1()
    dxDrawImage(640/zoom, 309/zoom, 639/zoom, 462/zoom, main, 0, 0, 0, tocolor(255, 255, 255, 255), false)
    

    if mysz(640/zoom, 310/zoom, 59/zoom, 50/zoom) then 
    dxDrawRectangle(640/zoom, 310/zoom, 59/zoom, 50/zoom, tocolor(30, 30, 30, 150), false)
    dxDrawImage(650/zoom, 316/zoom, 39/zoom, 35/zoom, users, 0, 0, 0, tocolor(255, 255, 255, 255), false)
    else
        dxDrawImage(650/zoom, 316/zoom, 39/zoom, 35/zoom, users, 0, 0, 0, tocolor(255, 255, 255, 255), false)
    end


        if mysz(640/zoom, 360/zoom, 59/zoom, 50/zoom) then 
            dxDrawRectangle(640/zoom, 360/zoom, 59/zoom, 50/zoom, tocolor(30, 30, 30, 150), false)
            dxDrawImage(652/zoom, 370/zoom, 39/zoom, 35/zoom, arrow, 0, 0, 0, tocolor(255, 255, 255, 255), false)
            else
                dxDrawImage(652/zoom, 370/zoom, 39/zoom, 35/zoom, arrow, 0, 0, 0, tocolor(255, 255, 255, 255), false)
            end


                if page == 1 then 
                    dxDrawRectangle(640/zoom, 310/zoom, 59/zoom, 50/zoom, tocolor(30, 30, 30, 150), false)
                    dxDrawImage(650/zoom, 316/zoom, 39/zoom, 35/zoom, users, 0, 0, 0, tocolor(255, 255, 255, 255), false)
                    else
                        dxDrawImage(650/zoom, 316/zoom, 39/zoom, 35/zoom, users, 0, 0, 0, tocolor(255, 255, 255, 255), false)
                    end
                    if page == 2 then 
                        dxDrawRectangle(640/zoom, 360/zoom, 59/zoom, 50/zoom, tocolor(30, 30, 30, 150), false)
                        dxDrawImage(652/zoom, 370/zoom, 39/zoom, 35/zoom, arrow, 0, 0, 0, tocolor(255, 255, 255, 255), false)
                        for i, v in ipairs(organization) do 
                            dxDrawText("Spawn organizacji "..v["code"], 710/zoom,  384/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, false, false, false)
                            dxDrawText("Aktualny spawn "..v["xyz"], 710/zoom,  699/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, false, false, false)


                            if mysz(710/zoom,  465/zoom, 80/zoom, 25/zoom) then 
                            dxDrawText("Ustaw", 710/zoom,  480/zoom , left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false)
                            else
                                dxDrawText("Ustaw", 710/zoom,  480/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false)
                            end
                            if mysz(710/zoom,  410/zoom,  150/zoom, 40/zoom) then             
                                dxDrawRectangle(710/zoom,  410/zoom,  150/zoom, 40/zoom, tocolor(30, 30, 30, 100), false)
                                else 
                                    dxDrawRectangle(710/zoom,  410/zoom,  150/zoom, 40/zoom, tocolor(30, 30, 30, 150), false)
                                end
                        end
                    elseif not page == 2 then 
                            dxDrawImage(652/zoom, 370/zoom, 39/zoom, 35/zoom, arrow, 0, 0, 0, tocolor(255, 255, 255, 255), false)
                        end 

                        local x = 0
                        if page == 1 then 
                            dxDrawRectangle(700/zoom,  681.5/zoom, 578/zoom, 40.5/zoom, tocolor(30, 30, 30, 150), true)
                            dxDrawText("Login", 710/zoom,  701.5/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                            dxDrawText("Ranga", 900/zoom,  701.5/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                            dxDrawText("UID", 1060/zoom,  701.5/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                            for i, v in ipairs(organization) do 
                                if i >= k2 and i <= n2 then  
                                x = x + 1
                                 offset = (35)*(x-1)
                                if mysz(700/zoom,  (offset+366.5)/zoom, 578/zoom, 37/zoom) then 
                                    dxDrawRectangle(700/zoom,  (offset+366.5)/zoom, 578/zoom, 37/zoom, tocolor(30, 30, 30, 150), true)
                                end
                                local login1 = string.gsub(v["login"], "#%x%x%x%x%x%x", "")
                                dxDrawText(login1, 710/zoom,  (offset+384)/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                dxDrawText(v["uid"], 1060/zoom,  (offset+384)/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                if v["rank"] == 5 then 
                                    dxDrawText("Lider", 900/zoom,  (offset+384)/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                elseif v["rank"] == 4 then 
                                    dxDrawText("vLider", 900/zoom,  (offset+384)/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                elseif v["rank"] == 3 then 
                                    dxDrawText("Cz?onek", 900/zoom,  (offset+384)/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                else 
                                    dxDrawText("Nikt", 900/zoom,  (offset+384)/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)

                                end     
                                if mysz(1180/zoom,  730/zoom , 80/zoom, 25/zoom) then 
                                    dxDrawText("Dodaj", 1180/zoom,  745/zoom , left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                    else 
                                       dxDrawText("Dodaj", 1180/zoom,  745/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                    end
   
                                    if mysz(1080/zoom,  730/zoom , 80/zoom, 25/zoom) then 
                                       dxDrawText("Edytuj", 1080/zoom,  745/zoom , left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                       else 
                                          dxDrawText("Edytuj", 1080/zoom,  745/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                       end

                                       if mysz(980/zoom,  730/zoom , 80/zoom, 25/zoom) then 
                                        dxDrawText("Usu?", 980/zoom,  745/zoom , left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                        else 
                                           dxDrawText("Usu?", 980/zoom,  745/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
                                        end



                        

                            end
                        end 
                    end
end 


function gui2()
    dxDrawImage(1290/zoom, 309/zoom, 232/zoom, 195/zoom, dod, 0, 0, 0, tocolor(255, 255, 255, 255), false)

    if mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) then 
    dxDrawText("Dodaj", 1365/zoom, 450/zoom, left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
else 
    dxDrawText("Dodaj", 1365/zoom, 450/zoom, left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
end 


    if mysz(1330/zoom, 330/zoom, 150/zoom, 40/zoom) then 
    dxDrawRectangle(1330/zoom, 330/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 100), false)
    else 
        dxDrawRectangle(1330/zoom, 330/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 150), false)
    end

end

function gui3()
    dxDrawImage(1290/zoom, 309/zoom, 232/zoom, 195/zoom, dod, 0, 0, 0, tocolor(255, 255, 255, 255), false)

    if mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) then 
    dxDrawText("Edytuj", 1365/zoom, 450/zoom, left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
else 
    dxDrawText("Edytuj", 1365/zoom, 450/zoom, left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
end 


    if mysz(1330/zoom, 330/zoom, 150/zoom, 40/zoom) then 
    dxDrawRectangle(1330/zoom, 330/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 100), false)
    else 
        dxDrawRectangle(1330/zoom, 330/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 150), false)
    end

    if mysz( 1330/zoom, 380/zoom, 150/zoom, 40/zoom) then 
        dxDrawRectangle(1330/zoom, 380/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 100), false)
    else 
        dxDrawRectangle(1330/zoom, 380/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 150), false)
    end
end

function gui4()
    dxDrawImage(1290/zoom, 309/zoom, 232/zoom, 195/zoom, dod, 0, 0, 0, tocolor(255, 255, 255, 255), false)

    if mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) then 
    dxDrawText("Usu?", 1365/zoom, 450/zoom, left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
else 
    dxDrawText("Usu?", 1365/zoom, 450/zoom, left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false, false, true, false, false)
end 


    if mysz(1330/zoom, 330/zoom, 150/zoom, 40/zoom) then 
    dxDrawRectangle(1330/zoom, 330/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 100), false)
    else 
        dxDrawRectangle(1330/zoom, 330/zoom, 150/zoom, 40/zoom, tocolor(30, 30, 30, 150), false)
    end

end

addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
        if not mysz(1180/zoom,  730/zoom , 80/zoom, 25/zoom) and not mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) and not mysz(1330/zoom, 330/zoom, 150/zoom, 40/zoom) and not mysz( 1330/zoom, 380/zoom, 150/zoom, 40/zoom) then 
        if page == 1 then 
                if okienko == 1 then 
                okienko = 0 
                removeEventHandler("onClientRender", root, gui2)
                exports.editbox:destroyEdit("uid:panel")
                exports.editbox:destroyEdit("login:panel")
                end 
            end
        end
    end
end)



addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
            if page == 1 then    
                    if okienko == 0 then 
                        if mysz(1180/zoom,  730/zoom , 80/zoom, 25/zoom) then 
                            for i, v in ipairs(eloelo) do 
                            if  v["rank"] == 5 or v["rank"] == 4  then 
                            okienko = 1 
                            addEventHandler("onClientRender", root, gui2)
                            exports.editbox:createEdit("uid:panel", "", "ID/Nick", 1330/zoom, 330/zoom, 150/zoom, 40/zoom, false, 1, 150)
                            --exports.editbox:createEdit("login:panel", "", "Login", 1330/zoom, 380/zoom, 150/zoom, 40/zoom, false, 1, 150)
                        end
                    end
                end
            end
        end
    end
end)


addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
        if not mysz(1080/zoom,  730/zoom , 80/zoom, 25/zoom) and not mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) and not mysz(1330/zoom, 330/zoom, 150/zoom, 40/zoom) and not mysz( 1330/zoom, 380/zoom, 150/zoom, 40/zoom) then 
        if page == 1 then 
                if okienko == 2 then 
                    for i, v in ipairs(eloelo) do 
                        if  v["rank"] == 5 or v["rank"] == 4  then 
                okienko = 0 
                removeEventHandler("onClientRender", root, gui3)
                exports.editbox:destroyEdit("uid:panel1")
                exports.editbox:destroyEdit("ranga:panel1")
                end 
            end
        end 
            end
        end
    end
end)


addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
            if page == 1 then    
                    if okienko == 0 then 
                        if mysz(1080/zoom,  730/zoom , 80/zoom, 25/zoom) then 
                            for i, v in ipairs(eloelo) do 
                                if  v["rank"] == 5 or v["rank"] == 4  then 
                            okienko = 2 
                            addEventHandler("onClientRender", root, gui3)
                            exports.editbox:createEdit("uid:panel1", "", "UID", 1330/zoom, 330/zoom, 150/zoom, 40/zoom, false, 1, 150)
                            exports.editbox:createEdit("ranga:panel1", "", "Ranga", 1330/zoom, 380/zoom, 150/zoom, 40/zoom, false, 1, 150)
                                end 
                            end
                end
            end
        end
    end
end)





addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
        if not mysz(980/zoom,  730/zoom , 80/zoom, 25/zoom) and not mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) and not mysz(1330/zoom, 330/zoom, 150/zoom, 40/zoom) then 
        if page == 1 then 
                if okienko == 3 then
                    for i, v in ipairs(eloelo) do 
                        if  v["rank"] == 5 or v["rank"] == 4  then  
                okienko = 0 
                removeEventHandler("onClientRender", root, gui4)
                exports.editbox:destroyEdit("uid:panel2")
                end 
            end 
        end
            end
        end
    end
end)


addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
            if page == 1 then    
                    if okienko == 0 then 
                        if mysz(980/zoom,  730/zoom , 80/zoom, 25/zoom) then 
                            for i, v in ipairs(eloelo) do 
                                if  v["rank"] == 5 or v["rank"] == 4  then 
                            okienko = 3
                            addEventHandler("onClientRender", root, gui4)
                            exports.editbox:createEdit("uid:panel2", "", "UID", 1330/zoom, 330/zoom, 150/zoom, 40/zoom, false, 1, 150)
                end
            end 
        end
            end
        end
    end
end)

addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
            if page == 1 then    
                    if okienko == 0 then 
                        if mysz(640/zoom, 360/zoom, 59/zoom, 50/zoom) then 
                            for i, v in ipairs(eloelo) do 
                                if  v["rank"] == 5 or v["rank"] == 4  then 
                            page = 2 
                            exports.editbox:createEdit("spawn:panel", "", "x, y, z", 710/zoom,  410/zoom,  150/zoom, 40/zoom, false, 1, 150)
                            local x1, y1, z1 = getElementPosition(localPlayer)
                            exports.editbox:setEditText("spawn:panel", ""..math.ceil(x1)..", "..math.ceil(y1)..", "..math.ceil(z1).."")
                                end 
                            end
                end
            end
        end
    end
end)

addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
            if page == 2 then    
                    if okienko == 0 then 
                        if mysz(640/zoom, 310/zoom, 59/zoom, 50/zoom) then 
                            for i, v in ipairs(eloelo) do 
                                if  v["rank"] == 5 or v["rank"] == 4  then 
                            page = 1 
                            exports.editbox:destroyEdit("spawn:panel")

                                end 
                            end
                end
            end
        end
    end
end)



addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
        if mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) and okienko == 1 and page == 1 then 
            local dodajEdit = exports.editbox:getEditText("uid:panel")
            --if string.len(dodajEdit) < 0 and  string.len(dodajEdit1) < 0 then outputChatBox("* Wype?nij pola") return end  
            --if not tonumber(dodajEdit) and string.len(dodajEdit1) > 0 then outputChatBox("* Podaj UID gracza") return end 
            if string.len(dodajEdit) > 0 then 
            triggerServerEvent("dodajOrg",localPlayer,  dodajEdit)
            deleteAll()
            end 
        end
    end
end)


addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
        if mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) and okienko == 2 and page == 1 then 
            local edytujEdit = exports.editbox:getEditText("uid:panel1")
            local edytujEdit1 = exports.editbox:getEditText("ranga:panel1")
            if tonumber(edytujEdit) == getElementData(localPlayer, "player:sid") then outputChatBox("* Brak uprawnie?") return end 
            for i, v in ipairs(organization) do 
            if tonumber(edytujEdit) == v["uid"] then 
            if tonumber(edytujEdit) and tonumber(edytujEdit1) then 
            outputChatBox("* Edytowa?e? gracza o UID: "..edytujEdit)  
            triggerServerEvent("edytujOrg",localPlayer,  edytujEdit, edytujEdit1)
            deleteAll()
            end
            end 
        end 
        end
    end
end)


addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
        if mysz(1365/zoom, 435/zoom,  80/zoom, 25/zoom) and okienko == 3 and page == 1 then 
            local usunEdit = exports.editbox:getEditText("uid:panel2")
            if tonumber(usunEdit) == getElementData(localPlayer, "player:sid") then outputChatBox("* Brak uprawnie?") return end 
            for i, v in ipairs(organization) do 
                if tonumber(usunEdit) == v["uid"] then 
            if tonumber(usunEdit) then
            outputChatBox("* Usun??e? gracza o UID: "..usunEdit)  
            triggerServerEvent("usunOrg",localPlayer,  usunEdit)
            deleteAll()
            end 
            end 
            end
        end
    end
end)



addEventHandler("onClientClick", root, function(b, s)
    if b == "left" and s == "down" then 
        if mysz(710/zoom,  465/zoom, 80/zoom, 25/zoom)  and okienko == 0 and page == 2 then 
            local spawnEdit = exports.editbox:getEditText("spawn:panel")
            outputChatBox("* Ustawi?e? spawn: "..spawnEdit)  
            triggerServerEvent("ustawSpawn",localPlayer,  spawnEdit)
            deleteAll()
        end
    end
end)




function deleteAll()
    unbindKey("mouse_wheel_up", "both", scrollDown2)
    unbindKey("mouse_wheel_down", "both", scrollUp2)
    showCursor(false)
    removeEventHandler("onClientRender", root, gui1)
    removeEventHandler("onClientRender", root, gui2)
    removeEventHandler("onClientRender", root, gui3)
    removeEventHandler("onClientRender", root, gui4)
    exports.editbox:destroyEdit("uid:panel")
    exports.editbox:destroyEdit("login:panel")
    exports.editbox:destroyEdit("uid:panel1")
    exports.editbox:destroyEdit("ranga:panel1")
    exports.editbox:destroyEdit("uid:panel2")
    exports.editbox:destroyEdit("spawn:panel")
    okienko = 0 
    page = 1 
end




addEvent("showPlayersOrg", true)
addEventHandler("showPlayersOrg", root, function(tabelka)
    organization = tabelka
end)


addEvent("getPlayerOrganizations", true)
addEventHandler("getPlayerOrganizations", root, function(tabelka1)
    eloelo = tabelka1
end)


bindKey("F4", "down", function()
    if getElementData(localPlayer, "player:organization") then 
    if start == false then  
    start = true 
    page = 1 
    bindKey("mouse_wheel_up", "both", scrollDown2)
    bindKey("mouse_wheel_down", "both", scrollUp2)
    triggerServerEvent("showPlayersOrganization", localPlayer)
    triggerServerEvent("getPlayerOrganization",localPlayer)
    showCursor(true)
    addEventHandler("onClientRender", root, gui1)
    elseif start == true then 
        start = false 
        deleteAll()
    end
    end 
end)



Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-23, 21:28


TheSebaPL

Mod-team






Wiek: 22
Na forum: 3239 dni
Posty: 964

Piwa: 3101

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

NoNamik, a co ma si? innego wy?wietla? ni? "USTAW" opisz dok?adniej sw?j problem. Tak?e zobacz b??dy czy s? w /debugscript 3 je?eli s? to je poka?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-23, 22:07


NoNamik







Wiek: 35
Na forum: 2327 dni
Posty: 288
Nick w MP: JestemNoNamem

Piwa: 379

Respekt: 60

TheSebaPL, pisze dokladnie czytaj nie ma bledow w DB3 a jak wchodze w panel org i ustawianie spawnu to nie napisu USTAW ale jest pozycja spawnu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-23, 23:08


PatryKK.

Emeryt LUA






Wiek: 27
Na forum: 3202 dni
Posty: 1059
Nick w MP: PatryKK.

Piwa: 2331

Respekt: 331,5
Respekt: 331,5Respekt: 331,5Respekt: 331,5

Skrawek kodu, kt?ry za to odpowiada:

                            if mysz(710/zoom,  465/zoom, 80/zoom, 25/zoom) then 
                            dxDrawText("Ustaw", 710/zoom,  480/zoom , left, top, tocolor(213, 199, 38, 255), 1/zoom, font, "left", "center", false)
                            else
                                dxDrawText("Ustaw", 710/zoom,  480/zoom , left, top, tocolor(150, 150, 150, 255), 1/zoom, font, "left", "center", false)
                            end
                            if mysz(710/zoom,  410/zoom,  150/zoom, 40/zoom) then             
                                dxDrawRectangle(710/zoom,  410/zoom,  150/zoom, 40/zoom, tocolor(30, 30, 30, 100), false)
                                else 
                                    dxDrawRectangle(710/zoom,  410/zoom,  150/zoom, 40/zoom, tocolor(30, 30, 30, 150), false)
                                end
                        end
                    elseif not page == 2 then 
                            dxDrawImage(652/zoom, 370/zoom, 39/zoom, 35/zoom, arrow, 0, 0, 0, tocolor(255, 255, 255, 255), false)
                        end


Reszta napis?w jest na swoim miejscu?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-24, 15:22


NoNamik







Wiek: 35
Na forum: 2327 dni
Posty: 288
Nick w MP: JestemNoNamem

Piwa: 379

Respekt: 60

Tyle to ja wiem

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-24, 15:50


PatryKK.

Emeryt LUA






Wiek: 27
Na forum: 3202 dni
Posty: 1059
Nick w MP: PatryKK.

Piwa: 2331

Respekt: 331,5
Respekt: 331,5Respekt: 331,5Respekt: 331,5

Na pocz?tku piszesz "mam problem bo nie wy?wietla mi napisu Ustaw" po czym wy?ej piszesz inaczej mianowicie "ustawianie spawnu to nie napisu USTAW ale jest pozycja spawnu". Wi?c w ko?cu z czym masz problem? Jaki? screen bo Twoja tre?? jest dla mnie niezrozumia?a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-10-30, 13:25


NoNamik







Wiek: 35
Na forum: 2327 dni
Posty: 288
Nick w MP: JestemNoNamem

Piwa: 379

Respekt: 60

zamykam

Postaw piwo autorowi tego posta
 

 
Tagi: panel :: organizacji
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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