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

Wysłany: 2016-03-25, 13:38


nox







Wiek: 33
Na forum: 3907 dni
Posty: 51
Nick w MP: nox



Respekt: 50

mam taki kod i panel nie chce sie zamknac

GUIEditor = {
    gridlist = {},
    staticimage = {},
    button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
local screenW, screenH = guiGetScreenSize()
        GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 640) / 2, (screenH - 400) / 2, 640, 400, ":obrazki5/images/1.png", false)
GUIEditor.label[1] = guiCreateLabel(10, 304, 217, 65, " ---- ", false, GUIEditor.staticimage[1])
   
        GUIEditor.button[2] = guiCreateButton(10, 154, 217, 65, "", false, GUIEditor.staticimage[1])
        GUIEditor.button[3] = guiCreateButton(10, 229, 217, 65, "", false, GUIEditor.staticimage[1])
        GUIEditor.button[4] = guiCreateButton(10, 304, 217, 65, "", false, GUIEditor.staticimage[1])
        GUIEditor.gridlist[1] = guiCreateGridList(360, 47, 270, 343, false, GUIEditor.staticimage[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Gracz", 0.9)
        guiSetAlpha(GUIEditor.gridlist[1], 0.72)    
    end
)

function openPanel()
guiSetVisible(GUIEditor.staticimage[1], true)
showCursor(true)
end
addCommandHandler("pdp", openPanel)

function zamykamy()
if source == GUIEditor.label[1] then 
guiSetVisible(GUIEditor.staticimage[1],false) 
showCursor(false) 
end
end 
addEventHandler("onClientGUIClick", root, zamykamy)

w db3 mam cos takiego :
http://i.imgur.com/kszdmXp.png

co zrobic ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-03-25, 14:02


marcin778

Krytyk serwerów MTA






Wiek: 24
Na forum: 4290 dni
Posty: 2268
Nick w MP: Marcineg

Piwa: 4661

Respekt: 1436,8
Respekt: 1436,8


local screenW, screenH = guiGetScreenSize()
        GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 640) / 2, (screenH - 400) / 2, 640, 400, ":obrazki5/images/1.png", false)
GUIEditor.label[1] = guiCreateLabel(10, 304, 217, 65, " ---- ", false, GUIEditor.staticimage[1])
   
        GUIEditor.button[2] = guiCreateButton(10, 154, 217, 65, "", false, GUIEditor.staticimage[1])
        GUIEditor.button[3] = guiCreateButton(10, 229, 217, 65, "", false, GUIEditor.staticimage[1])
        GUIEditor.button[4] = guiCreateButton(10, 304, 217, 65, "", false, GUIEditor.staticimage[1])
        GUIEditor.gridlist[1] = guiCreateGridList(360, 47, 270, 343, false, GUIEditor.staticimage[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Gracz", 0.9)
        guiSetAlpha(GUIEditor.gridlist[1], 0.72)    


function openPanel()
guiSetVisible(GUIEditor.staticimage[1], true)
showCursor(true)
end
addCommandHandler("pdp", openPanel)

function zamykamy()
if source == GUIEditor.label[1] then 
guiSetVisible(GUIEditor.staticimage[1],false) 
showCursor(false) 
end
end 
addEventHandler("onClientGUIClick", root, zamykamy)


Podpis
Moje prace: https://www.youtube.com/c...MuaWGHPp1mhlGnw

-- obecnie
-- obecnie
-- dawniej
-- dawniej
-- dawniej
Postaw piwo autorowi tego posta
 

 
Tagi: panel :: nie :: chce :: się :: zamknąc
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