Jump to content

help please


Recommended Posts

can someone please tell what what i did wrong in this

  
        GUIEditor_Window = {} 
        GUIEditor_TabPanel = {} 
        GUIEditor_Tab = {} 
        GUIEditor_Button = {} 
        GUIEditor_Memo = {} 
        GUIEditor_Radio = {} 
        GUIEditor_Image = {} 
  
        GUIEditor_Window[1] = guiCreateWindow(428,37,499,652,"Help Manager",false) 
    guiWindowSetSizable(GUIEditor_Window[1],false) 
  
        GUIEditor_TabPanel[1] = guiCreateTabPanel(21,120,469,523,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[1] = guiCreateTab("--------Server Info---------",GUIEditor_TabPanel[1]) 
        GUIEditor_Image[1] = guiCreateStaticImage(4,1,464,491,"images/en.png",false,GUIEditor_Tab[1]) 
        GUIEditor_Tab[2] = guiCreateTab("----------Server Rules----------",GUIEditor_TabPanel[1]) 
        GUIEditor_Button[2] = guiCreateButton(11,10,182,44,"English",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[3] = guiCreateButton(267,13,191,44,"Arabic",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
  
        GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
  
  
        GUIEditor_Tab[3] = guiCreateTab("-----Gamemode binds-----",GUIEditor_TabPanel[1]) 
        GUIEditor_Memo[1] = guiCreateMemo(3,0,466,495,"arena [id] - for starting arenas  
\n/base [id] - for starting bases  
\n/end - for ending the round  
\n/add [id] - for adding the player to round  
\n/resetscore - restart all players and teams score  
\n/gunmenu [id] - for giving the gunmenu for the player  
\n/remove [id] - for removing the player from the round  
\n/screen id quaility(0-100) [taq] [width] [height] - for doing screenshot for the player  
\n/vote [base/arena] [id/ids] - for start the voting  
\n/car [id] - for get the vehicle in main lobby  
\n/clean - for restart the rounds history  
\n/pause - for pausing/repausing the round  
\n/swap - for change the teams sides  
\n/tp [id1] [id2] - for teleport the player1 to the player2  
\n/heal [id] - for heal the player  
\n/healall - for heal all players  
\n/startmatch [base/tdm] [rounds] - for starting the match  
\n/endmatch - for ending the match  
\n/gun - re weapon select  
\n/rsp - for re-sync  
\n/view - for viewing the maps  
t\n[edit] 
\nDefault binds 
\nF1 - configuration panel  
\nF3 - client panel  
\nF4 - re-select team  
\nH - call help  
\nR - Realod the weapon",false,GUIEditor_Tab[3]) 
        GUIEditor_Image[3] = guiCreateStaticImage(10,21,480,91,"images/logo.png",false,GUIEditor_Window[1]) 
  
  
  
  
function infoShow ( ) 
    guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
    showCursor ( not isCursorShowing( ) ) 
end 
bindKey ( "F1","down", infoShow ) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[4], true ) 
            guiSetVisible( GUIEditor_Image[2], false ) 
        elseif ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[2], true ) 
            guiSetVisible( GUIEditor_Image[4], false ) 
        end 
    end 
) 

Link to comment
        GUIEditor_Window = {} 
        GUIEditor_TabPanel = {} 
        GUIEditor_Tab = {} 
        GUIEditor_Button = {} 
        GUIEditor_Memo = {} 
        GUIEditor_Radio = {} 
        GUIEditor_Image = {} 
  
        GUIEditor_Window[1] = guiCreateWindow(428,37,499,652,"Help Manager",false) 
    guiWindowSetSizable(GUIEditor_Window[1],false) 
  
        GUIEditor_TabPanel[1] = guiCreateTabPanel(21,120,469,523,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[1] = guiCreateTab("--------Server Info---------",GUIEditor_TabPanel[1]) 
        GUIEditor_Image[1] = guiCreateStaticImage(4,1,464,491,"images/en.png",false,GUIEditor_Tab[1]) 
        GUIEditor_Tab[2] = guiCreateTab("----------Server Rules----------",GUIEditor_TabPanel[1]) 
        GUIEditor_Button[2] = guiCreateButton(11,10,182,44,"English",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[3] = guiCreateButton(267,13,191,44,"Arabic",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
  
        GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
  
  
        GUIEditor_Tab[3] = guiCreateTab("-----Gamemode binds-----",GUIEditor_TabPanel[1]) 
        GUIEditor_Memo[1] = guiCreateMemo(3,0,466,495,"arena [id] - for starting arenas\n/base [id] - for starting bases\n/end - for ending the round\n/add [id] - for adding the player to round\n/resetscore - restart all players and teams score\n/gunmenu [id] - for giving the gunmenu for the player\n/remove [id] - for removing the player from the round\n/screen id quaility(0-100) [taq] [width] [height] - for doing screenshot for the player\n/vote [base/arena] [id/ids] - for start the voting\n/car [id] - for get the vehicle in main lobby\n/clean - for restart the rounds history\n/pause - for pausing/repausing the round\n/swap - for change the teams sides\n/tp [id1] [id2] - for teleport the player1 to the player2\n/heal [id] - for heal the player\n/healall - for heal all players\n/startmatch [base/tdm] [rounds] - for starting the match\n/endmatch - for ending the match\n/gun - re weapon select\n/rsp - for re-sync\n/view - for viewing the mapst\n[edit]\nDefault binds\nF1 - configuration panel\nF3 - client panel\nF4 - re-select team\nH - call help\nR - Realod the weapon",false,GUIEditor_Tab[3]) 
        GUIEditor_Image[3] = guiCreateStaticImage(10,21,480,91,"images/logo.png",false,GUIEditor_Window[1]) 
  
  
  
  
function infoShow ( ) 
    guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
    showCursor ( not isCursorShowing( ) ) 
end 
bindKey ( "F1","down", infoShow ) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[4], true ) 
            guiSetVisible( GUIEditor_Image[2], false ) 
        elseif ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[2], true ) 
            guiSetVisible( GUIEditor_Image[4], false ) 
        end 
    end 
) 

Your text wasn't correct.

Link to comment
local text = [[ 
arena [id] - for starting arenas 
/base [id] - for starting bases 
/end - for ending the round 
/add [id] - for adding the player to round 
/resetscore - restart all players and teams score 
/gunmenu [id] - for giving the gunmenu for the player 
/remove [id] - for removing the player from the round 
/screen id quaility(0-100) [taq] [width] [height] - for doing screenshot for the player 
/vote [base/arena] [id/ids] - for start the voting 
/car [id] - for get the vehicle in main lobby 
/clean - for restart the rounds history 
/pause - for pausing/repausing the round 
/swap - for change the teams sides 
/tp [id1] [id2] - for teleport the player1 to the player2 
/heal [id] - for heal the player 
/healall - for heal all players 
/startmatch [base/tdm] [rounds] - for starting the match 
/endmatch - for ending the match 
/gun - re weapon select 
/rsp - for re-sync 
/view - for viewing the maps 
/n[edit] 
Default binds 
F1 - configuration panel 
F3 - client panel 
F4 - re-select team 
H - call help 
R - Realod the weapon 
]] 
      
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Radio = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(428,37,499,652,"Help Manager",false) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
  
GUIEditor_TabPanel[1] = guiCreateTabPanel(21,120,469,523,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("--------Server Info---------",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(4,1,464,491,"images/en.png",false,GUIEditor_Tab[1]) 
GUIEditor_Tab[2] = guiCreateTab("----------Server Rules----------",GUIEditor_TabPanel[1]) 
GUIEditor_Button[2] = guiCreateButton(11,10,182,44,"English",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(267,13,191,44,"Arabic",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
  
GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
  
  
GUIEditor_Tab[3] = guiCreateTab("-----Gamemode binds-----",GUIEditor_TabPanel[1]) 
GUIEditor_Memo[1] = guiCreateMemo(3,0,466,495,text,false,GUIEditor_Tab[3]) 
GUIEditor_Image[3] = guiCreateStaticImage(10,21,480,91,"images/logo.png",false,GUIEditor_Window[1]) 
      
      
      
      
function infoShow ( ) 
    guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
    showCursor ( not isCursorShowing( ) ) 
end 
bindKey ( "F1","down", infoShow ) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[4], true ) 
            guiSetVisible( GUIEditor_Image[2], false ) 
        elseif ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[2], true ) 
            guiSetVisible( GUIEditor_Image[4], false ) 
        end 
    end 
) 

CLIENT-SIDE

Link to comment

all good now but the image isn't changing when clicked on the respective buttons

        if ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[4], true ) 
            guiSetVisible( GUIEditor_Image[2], false ) 
        elseif ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[2], true ) 
            guiSetVisible( GUIEditor_Image[4], false ) 
        end 
    end 
) 

Link to comment
  • Scripting Moderators
GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 

images/en.png

Same images.

Link to comment

still not changing the image

       GUIEditor_Window = {} 
        GUIEditor_TabPanel = {} 
        GUIEditor_Tab = {} 
        GUIEditor_Button = {} 
        GUIEditor_Memo = {} 
        GUIEditor_Radio = {} 
        GUIEditor_Image = {} 
GUIEditor_Label = {} 
  
        GUIEditor_Window[1] = guiCreateWindow(428,37,499,652,"Help Manager",false) 
    guiWindowSetSizable(GUIEditor_Window[1],false) 
  
        GUIEditor_TabPanel[1] = guiCreateTabPanel(21,120,469,523,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[1] = guiCreateTab("--------Server Info---------",GUIEditor_TabPanel[1]) 
        GUIEditor_Image[1] = guiCreateStaticImage(4,1,464,491,"images/en.png",false,GUIEditor_Tab[1]) 
        GUIEditor_Tab[2] = guiCreateTab("----------Server Rules----------",GUIEditor_TabPanel[1]) 
        GUIEditor_Button[2] = guiCreateButton(11,10,182,44,"English",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[3] = guiCreateButton(267,13,191,44,"Arabic",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) 
  
GUIEditor_Label[1] = guiCreateLabel(613,660,201,25,"MadeBy -RoCk-Alex",false,GUIEditor_Tab[1]) 
guiLabelSetColor(GUIEditor_Label[1],225,225,0) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
  
        GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/ar.png",false,GUIEditor_Tab[2]) 
  
  
        GUIEditor_Tab[3] = guiCreateTab("-----Gamemode binds-----",GUIEditor_TabPanel[1]) 
        GUIEditor_Memo[1] = guiCreateMemo(3,0,466,495,"arena [id] - for starting arenas\n/base [id] - for starting bases\n/end - for ending the round\n/add [id] - for adding the player to round\n/resetscore - restart all players and teams score\n/gunmenu [id] - for giving the gunmenu for the player\n/remove [id] - for removing the player from the round\n/screen id quaility(0-100) [taq] [width] [height] - for doing screenshot for the player\n/vote [base/arena] [id/ids] - for start the voting\n/car [id] - for get the vehicle in main lobby\n/clean - for restart the rounds history\n/pause - for pausing/repausing the round\n/swap - for change the teams sides\n/tp [id1] [id2] - for teleport the player1 to the player2\n/heal [id] - for heal the player\n/healall - for heal all players\n/startmatch [base/tdm] [rounds] - for starting the match\n/endmatch - for ending the match\n/gun - re weapon select\n/rsp - for re-sync\n/view - for viewing the mapst\n[edit]\nDefault binds\nF1 - configuration panel\nF3 - client panel\nF4 - re-select team\nH - call help\nR - Realod the weapon",false,GUIEditor_Tab[3]) 
        GUIEditor_Image[3] = guiCreateStaticImage(10,21,480,91,"images/logo.png",false,GUIEditor_Window[1]) 
  
  
  
  
function infoShow ( ) 
    guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
    showCursor ( not isCursorShowing( ) ) 
end 
bindKey ( "F1","down", infoShow ) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[4], true ) 
            guiSetVisible( GUIEditor_Image[2], false ) 
        elseif ( source == GUIEditor_Button[3] ) then 
            guiSetVisible( GUIEditor_Image[2], true ) 
            guiSetVisible( GUIEditor_Image[4], false ) 
        end 
    end 
) 

Link to comment
  • Scripting Moderators

Try this:

addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[3] ) then 
            guiSetVisible ( GUIEditor_Image[4], true ) 
            guiSetVisible ( GUIEditor_Image[2], false ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            guiSetVisible ( GUIEditor_Image[2], true ) 
            guiSetVisible ( GUIEditor_Image[4], false ) 
        end 
    end 
) 

Link to comment
Try this:
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[3] ) then 
            guiSetVisible ( GUIEditor_Image[4], true ) 
            guiSetVisible ( GUIEditor_Image[2], false ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            guiSetVisible ( GUIEditor_Image[2], true ) 
            guiSetVisible ( GUIEditor_Image[4], false ) 
        end 
    end 
) 

thanks brother it worked :):roll:

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...