Jump to content

طلب تصحيح


yazan

Recommended Posts

سلام عليكم

ودي اعرف وش الغلاط في هذى الكود مع علم لوحه فيها لمن تكبس يطلع صوت :arrowdown::arrowdown:

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) 
GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F5","down",open) 
  
  
isOn = true 
  
addEventHandler( "onClientGUIClick",  
 function () 
         if ( source == GUIEditor_Button[1] ) then 
function  
    local sound = playSound("sounds/A.mp3") 
  
 if ( source == GUIEditor_Button[2] ) then 
function  
    local sound = playSound("sounds/B.mp3") 
  
 if ( source == GUIEditor_Button[3] ) then 
function  
    local sound = playSound("sounds/C.mp3") 
  
 if ( source == GUIEditor_Button[4] ) then 
function  
    local sound = playSound("sounds/D.mp3") 
  
 if ( source == GUIEditor_Button[5 ) then 
function  
    local sound = playSound or stopSound 
end 
end) 

Link to comment
سلام عليكم

ودي اعرف وش الغلاط في هذى الكود مع علم لوحه فيها لمن تكبس يطلع صوت :arrowdown::arrowdown:

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) 
GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F5","down",open) 
  
  
isOn = true 
  
addEventHandler( "onClientGUIClick",  
 function () 
         if ( source == GUIEditor_Button[1] ) then 
function  
    local sound = playSound("sounds/A.mp3") 
  
 if ( source == GUIEditor_Button[2] ) then 
function  
    local sound = playSound("sounds/B.mp3") 
  
 if ( source == GUIEditor_Button[3] ) then 
function  
    local sound = playSound("sounds/C.mp3") 
  
 if ( source == GUIEditor_Button[4] ) then 
function  
    local sound = playSound("sounds/D.mp3") 
  
 if ( source == GUIEditor_Button[5 ) then 
function  
    local sound = playSound or stopSound 
end 
end) 

ليه حاط كم فنكشن

خذ ذا الكود جربة

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) 
GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F5","down",open) 
  
  
isOn = true 
  
addEventHandler( "onClientGUIClick",  
 function () 
  if ( source == GUIEditor_Button[1] ) then 
    local sound = playSound("sounds/A.mp3") 
  
 if ( source == GUIEditor_Button[2] ) then  
    local sound = playSound("sounds/B.mp3") 
  
 if ( source == GUIEditor_Button[3] ) then  
    local sound = playSound("sounds/C.mp3") 
  
 if ( source == GUIEditor_Button[4] ) then 
    local sound = playSound("sounds/D.mp3") 
  
 if ( source == GUIEditor_Button[5 ) then 
    local sound = playSound or stopSound 
end 
end) 

Link to comment
سلام عليكم

ودي اعرف وش الغلاط في هذى الكود مع علم لوحه فيها لمن تكبس يطلع صوت :arrowdown::arrowdown:

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) 
GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F5","down",open) 
  
  
isOn = true 
  
addEventHandler( "onClientGUIClick",  
 function () 
         if ( source == GUIEditor_Button[1] ) then 
    local sound = playSound("sounds/A.mp3") 
  
 elseif ( source == GUIEditor_Button[2] ) then 
function  
    local sound = playSound("sounds/B.mp3") 
  
 elseif ( source == GUIEditor_Button[3] ) then 
function  
    local sound = playSound("sounds/C.mp3") 
  
 if ( source == GUIEditor_Button[4] ) then 
function  
    local sound = playSound("sounds/D.mp3") 
  
 if ( source == GUIEditor_Button[5 ) then 
function  
    local sound = playSound or stopSound 
end 
end) 

ليه حاط كم فنكشن

خذ ذا الكود جربة

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) 
GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F5","down",open) 
  
  
isOn = true 
  
addEventHandler( "onClientGUIClick",  
 function () 
  if ( source == GUIEditor_Button[1] ) then 
    local sound = playSound("sounds/A.mp3") 
  
 elseif ( source == GUIEditor_Button[2] ) then  
    local sound = playSound("sounds/B.mp3") 
  
 elseif ( source == GUIEditor_Button[3] ) then  
    local sound = playSound("sounds/C.mp3") 
  
 elseif ( source == GUIEditor_Button[4] ) then 
    local sound = playSound("sounds/D.mp3") 
  
 elseif ( source == GUIEditor_Button[5 ) then 
    local sound = playSound or stopSound 
end 
end) 

Link to comment
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) 
GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) 
  
bindKey("F5", "down", 
function() 
    guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end) 
  
isOn = true -- ذا وش يبي؟ 
  
addEventHandler("onClientGUIClick", root, 
function () 
    if (source == GUIEditor_Button[1]) then 
        if isElement(sound) then destroyElement(sound) end 
        sound = playSound("sounds/A.mp3") 
    elseif (source == GUIEditor_Button[2]) then 
        if isElement(sound) then destroyElement(sound) end 
        sound = playSound("sounds/B.mp3") 
    elseif (source == GUIEditor_Button[3]) then 
        if isElement(sound) then destroyElement(sound) end 
        sound = playSound("sounds/C.mp3") 
    elseif (source == GUIEditor_Button[4]) then 
        if isElement(sound) then destroyElement(sound) end 
        sound = playSound("sounds/D.mp3") 
    elseif (source == GUIEditor_Button[5]) then 
        if isElement(sound) then 
            if isSoundPaused(sound) then 
                setSoundPaused(sound, false) 
            else 
                setSoundPaused(sound, true) 
            end 
        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...