yazan Posted February 20, 2013 Share Posted February 20, 2013 سلام عليكم ودي اعرف وش الغلاط في هذى الكود مع علم لوحه فيها لمن تكبس يطلع صوت 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
Mr.king Posted February 20, 2013 Share Posted February 20, 2013 سلام عليكم ودي اعرف وش الغلاط في هذى الكود مع علم لوحه فيها لمن تكبس يطلع صوت 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
Mr.king Posted February 20, 2013 Share Posted February 20, 2013 سلام عليكم ودي اعرف وش الغلاط في هذى الكود مع علم لوحه فيها لمن تكبس يطلع صوت 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
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 شيء غريب or stop sound ونفس المسميات . Link to comment
yazan Posted February 20, 2013 Author Share Posted February 20, 2013 طيب بسير احد يصلحه ؟ Link to comment
TAPL Posted February 20, 2013 Share Posted February 20, 2013 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
yazan Posted February 20, 2013 Author Share Posted February 20, 2013 اهلين منور . loooooooooooooool Link to comment
yazan Posted February 20, 2013 Author Share Posted February 20, 2013 تابل كودك سطر 22 وش وضعه ؟ Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 ^ وش دخلة انت مسويها!؟ Link to comment
yazan Posted February 20, 2013 Author Share Posted February 20, 2013 لا هو كتب بعده كلام عربي افكر بغير Link to comment
yazan Posted February 20, 2013 Author Share Posted February 20, 2013 مشكور والله انك كفو لكنه اول ما ادخل سيرفر يضهر وين احط فلس مشان ما يضهر Link to comment
TAPL Posted February 20, 2013 Share Posted February 20, 2013 GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) guiSetVisible(GUIEditor_Window[1], false) 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