Turbesz Posted July 19, 2016 Share Posted July 19, 2016 (edited) 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 July 22, 2016 by Guest Link to comment
EstrategiaGTA Posted July 19, 2016 Share Posted July 19, 2016 The window variables are different when creating them and when binding them... Fix that. Link to comment
Turbesz Posted July 19, 2016 Author Share Posted July 19, 2016 How? Sorry me noob scripter Link to comment
Anzo Posted July 19, 2016 Share Posted July 19, 2016 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
Ahmed Ly Posted July 20, 2016 Share Posted July 20, 2016 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
Ahmed Ly Posted July 20, 2016 Share Posted July 20, 2016 MANY THANKS! :DDDDD You're welcome Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now