Jump to content

[resolved]The window doesn't work


Turbesz

Recommended Posts

this window doesn't work but why?

Code:

GUIEditor_Window = {} 
cancelBtn = {} 
GUIEditor_Label = {} 
outputChatBox("#FF0000--Rang #FFffFFvásárlás #00ff00panel-- #ff0000F10!",0,255,255,true) 
  
GUIEditor.window[1] = guiCreateWindow(322, 223, 783, 193, "AJÁNDÉK PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00D655") 
GUIEditor.button[1] = guiCreateButton(9, 24, 126, 34, "HALHATATLANSÁG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[2] = guiCreateButton(9, 68, 126, 35, "AUTÓ HALHATATLANSÁG 1X", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[3] = guiCreateButton(9, 110, 126, 32, "MINIGUN", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[4] = guiCreateButton(10, 150, 125, 33, "TANK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[5] = guiCreateButton(143, 25, 131, 33, "SZÍNESÍRÁS", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEFFFE") 
GUIEditor.button[6] = guiCreateButton(143, 68, 131, 35, "FEGYVER CSOMAG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFEFFFE") 
GUIEditor.button[7] = guiCreateButton(144, 109, 130, 33, "LÁTHATATLANSÁG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFEFFFE") 
GUIEditor.memo[1] = guiCreateMemo(277, 25, 496, 117, "\nSzia, üdv a FullFunPlay Szerveren! \n\nEz a panel, egy MÁGIKUS!!! ISMÉTLEM MÁGIKUS PANEL!!! Csak nektek, turbesztől, a tulajtól. \n\nItt kiválaszthatsz egy valamit, 12 óránként! \n\nJó szórakozást a panellel!", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true)     
button = guiCreateButton(146, 152, 627, 31, "BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS", false, GUIEditor.window[1]) 
  
        guiSetVisible (GUIEditor_Window[1], false) 
function OpenWin() 
    if guiGetVisible ( GUIEditor_Window[1] ) then 
       guiSetVisible ( GUIEditor_Window[1], false ) 
    else 
        guiSetVisible ( GUIEditor_Window[1], true ) 
    end 
end 
  
function Bezaras( ) 
    guiSetVisible(GUIEditor_Window[1], false) 
    showCursor ( false ) 
  end 
addEventHandler ( "onClientGUIClick", button, Bezaras) 
function changeVisibility ( ) 
        guiSetVisible (GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
end 
  
bindKey ( "F10", "down", 
  
    function ( ) 
  
        guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
  
        guiSetVisible ( GUIEditor_Window[2], not guiGetVisible ( GUIEditor_Window[2] ) ) 
  
        showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) 
  
    end 
  
) 

Edited by Guest
Link to comment
this window doesn't work but why?

Code:

GUIEditor_Window = {} 
cancelBtn = {} 
GUIEditor_Label = {} 
outputChatBox("#FF0000--Rang #FFffFFvásárlás #00ff00panel-- #ff0000F10!",0,255,255,true) 
  
GUIEditor.window[1] = guiCreateWindow(322, 223, 783, 193, "AJÁNDÉK PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00D655") 
GUIEditor.button[1] = guiCreateButton(9, 24, 126, 34, "HALHATATLANSÁG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[2] = guiCreateButton(9, 68, 126, 35, "AUTÓ HALHATATLANSÁG 1X", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[3] = guiCreateButton(9, 110, 126, 32, "MINIGUN", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[4] = guiCreateButton(10, 150, 125, 33, "TANK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[5] = guiCreateButton(143, 25, 131, 33, "SZÍNESÍRÁS", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEFFFE") 
GUIEditor.button[6] = guiCreateButton(143, 68, 131, 35, "FEGYVER CSOMAG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFEFFFE") 
GUIEditor.button[7] = guiCreateButton(144, 109, 130, 33, "LÁTHATATLANSÁG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFEFFFE") 
GUIEditor.memo[1] = guiCreateMemo(277, 25, 496, 117, "\nSzia, üdv a FullFunPlay Szerveren! \n\nEz a panel, egy MÁGIKUS!!! ISMÉTLEM MÁGIKUS PANEL!!! Csak nektek, turbesztől, a tulajtól. \n\nItt kiválaszthatsz egy valamit, 12 óránként! \n\nJó szórakozást a panellel!", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true)     
button = guiCreateButton(146, 152, 627, 31, "BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS", false, GUIEditor.window[1]) 
  
        guiSetVisible (GUIEditor_Window[1], false) 
function OpenWin() 
    if guiGetVisible ( GUIEditor_Window[1] ) then 
       guiSetVisible ( GUIEditor_Window[1], false ) 
    else 
        guiSetVisible ( GUIEditor_Window[1], true ) 
    end 
end 
  
function Bezaras( ) 
    guiSetVisible(GUIEditor_Window[1], false) 
    showCursor ( false ) 
  end 
addEventHandler ( "onClientGUIClick", button, Bezaras) 
function changeVisibility ( ) 
        guiSetVisible (GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
end 
  
bindKey ( "F10", "down", 
  
    function ( ) 
  
        guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
  
        guiSetVisible ( GUIEditor_Window[2], not guiGetVisible ( GUIEditor_Window[2] ) ) 
  
        showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) 
  
    end 
  
) 

Try this:

outputChatBox("#FF0000--Rang #FFffFFvásárlás #00ff00panel-- #ff0000F10!",0,255,255,true) 
  
  
window = guiCreateWindow(322, 223, 783, 193, "AJÁNDÉK PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window, false) 
guiSetProperty(window, "CaptionColour", "FF00D655") 
button2 = guiCreateButton(9, 24, 126, 34, "HALHATATLANSÁG", false, window) 
guiSetProperty(button2, "NormalTextColour", "FF2FFE00") 
button3 = guiCreateButton(9, 68, 126, 35, "AUTÓ HALHATATLANSÁG 1X", false, window) 
guiSetProperty(button3, "NormalTextColour", "FF2FFE00") 
button33 = guiCreateButton(9, 110, 126, 32, "MINIGUN", false, window) 
guiSetProperty(button33, "NormalTextColour", "FF2FFE00") 
button4 = guiCreateButton(10, 150, 125, 33, "TANK", false, window) 
guiSetProperty(button4, "NormalTextColour", "FF2FFE00") 
button5 = guiCreateButton(143, 25, 131, 33, "SZÍNESÍRÁS", false, window) 
guiSetProperty(button5, "NormalTextColour", "FFFEFFFE") 
button6 = guiCreateButton(143, 68, 131, 35, "FEGYVER CSOMAG", false, window) 
guiSetProperty(button6, "NormalTextColour", "FFFEFFFE") 
button7 = guiCreateButton(144, 109, 130, 33, "LÁTHATATLANSÁG", false, window) 
guiSetProperty(button7, "NormalTextColour", "FFFEFFFE") 
memo = guiCreateMemo(277, 25, 496, 117, "\nSzia, üdv a FullFunPlay Szerveren! \n\nEz a panel, egy MÁGIKUS!!! ISMÉTLEM MÁGIKUS PANEL!!! Csak nektek, turbesztől, a tulajtól. \n\nItt kiválaszthatsz egy valamit, 12 óránként! \n\nJó szórakozást a panellel!", false, window) 
guiMemoSetReadOnly(memo, true)     
button = guiCreateButton(146, 152, 627, 31, "BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS", false, window) 
  
  
  
function OpenWin() 
    if guiGetVisible ( window ) == false then 
       guiSetVisible ( window, true ) 
       showCursor(true) 
    end 
end 
bindKey ( "F10", "down", OpenWin) 
  
function Bezaras() 
    guiSetVisible(window, false) 
    showCursor ( false ) 
     
end 
addEventHandler ( "onClientGUIClick", button, Bezaras) 

Link to comment
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    memo = {} 
} 
outputChatBox("#FF0000--Rang #FFffFFvásárlás #00ff00panel-- #ff0000F10!",0,255,255,true) 
  
GUIEditor.window[1] = guiCreateWindow(322, 223, 783, 193, "AJÁNDÉK PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00D655") 
GUIEditor.button[1] = guiCreateButton(9, 24, 126, 34, "HALHATATLANSÁG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[2] = guiCreateButton(9, 68, 126, 35, "AUTÓ HALHATATLANSÁG 1X", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[3] = guiCreateButton(9, 110, 126, 32, "MINIGUN", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[4] = guiCreateButton(10, 150, 125, 33, "TANK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF2FFE00") 
GUIEditor.button[5] = guiCreateButton(143, 25, 131, 33, "SZÍNESÍRÁS", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEFFFE") 
GUIEditor.button[6] = guiCreateButton(143, 68, 131, 35, "FEGYVER CSOMAG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFEFFFE") 
GUIEditor.button[7] = guiCreateButton(144, 109, 130, 33, "LÁTHATATLANSÁG", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFEFFFE") 
GUIEditor.memo[1] = guiCreateMemo(277, 25, 496, 117, "\nSzia, üdv a FullFunPlay Szerveren! \n\nEz a panel, egy MÁGIKUS!!! ISMÉTLEM MÁGIKUS PANEL!!! Csak nektek, turbesztől, a tulajtól. \n\nItt kiválaszthatsz egy valamit, 12 óránként! \n\nJó szórakozást a panellel!", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true)     
button = guiCreateButton(146, 152, 627, 31, "BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS", false, GUIEditor.window[1]) 
  
   
function Bezaras( ) 
    guiSetVisible(GUIEditor.window[1], false) 
    showCursor ( false ) 
  end 
addEventHandler ( "onClientGUIClick", button, Bezaras) 
  
  
       guiSetVisible (GUIEditor.window[1], false)   
function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then 
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible (GUIEditor.window[1],true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F10", "down", OpenWin) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...