Jump to content

وش الخطء


Recommended Posts

addEventHandler('onClientGUIClick', root, 
     function () 
       if ( source == GUIEditor.button[1] ) then 
    local sound = playSound(M.MP3)  
    setSoundVolume(sound, 0.5)  
end 
) 
  
     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("F2", "down", OpenWin)   

وش الخطء؟

Link to comment
addEventHandler('onClientGUIClick', root, 
     function () 
       if ( source == GUIEditor.button[1] ) then 
    local sound = playSound("M.MP3") 
    setSoundVolume(sound, 0.5) 
end 
end) 

Link to comment
        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("F2", "down", OpenWin) 
  
addEventHandler("onClientGuiClick", root, 
function () 
if ( source == GUIEditor.button[1] ) then 
local sound = playSound("M.mp3") 
setSoundVolume(sound, 0.5) 
    end 
end 
) 

Link to comment
        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("F2", "down", OpenWin) 
  
addEventHandler("onClientGuiClick", root, 
function () 
if ( source == GUIEditor.button[1] ) then 
local sound = playSound("M.mp3") 
setSoundVolume(sound, 0.5) 
    end 
end 
) 

:?:?

Link to comment

يعطيكم العافيه طلع ذا الكود الصحيح

addEventHandler("onClientGUIClick", root, 
    function() 
        if(source == GUIEditor.button[1])then 
            if(sound)then return end 
            sound = playSound("M.mp3",true) 
        elseif(source == GUIEditor.button[5])then 
            if(sound)then 
                stopSound(sound) 
                sound = nil 
            end 
        end 
    end 
) 

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