فتى تبوك Posted December 2, 2012 Share Posted December 2, 2012 السلام عليكم ورحمة الله وبركاته مساكم الله بالخير يالربع ياشباب صححو لي كود isPlay = false addEventHandler ("onClientGUIClick", root, function() if ( isPlay == false and source == GUIEditor_Button[2] ) then sound = playSound("2.mp3") isPlay = true else stopSound(sound) isPlay = false end end ) Link to comment
./BlackBird# Posted December 2, 2012 Share Posted December 2, 2012 addEventHandler('onClientGUIClick',root, function () if(source==GUIEditor_Button[2]) if(isElement(sound)then stopSound(sound) else sound = playSound('2.mp3') end end end) Link to comment
==>ҭᾄlᾄl Posted December 2, 2012 Share Posted December 2, 2012 (edited) addEventHandler('onClientGUIClick',root, function () if(source==GUIEditor_Button[2]) if(isElement(sound)then stopSound(sound) else sound = playSound('2.mp3') end end end) ××× addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then if isElement(sound) then stopSound(sound) end sound = playSound("2.mp3") end end ) Edited December 2, 2012 by Guest Link to comment
فتى تبوك Posted December 2, 2012 Author Share Posted December 2, 2012 للاسف ولا كود اشتغل انا ابي مسوي زر وابي اذا ضغت الزر تشتغل واذا ضغطه مره ثانيه تطفي Link to comment
==>ҭᾄlᾄl Posted December 2, 2012 Share Posted December 2, 2012 (edited) عدلت كودي + تاكد انك ظايف ملف الصوت للميتا "2.mp3" /> Edited December 2, 2012 by Guest Link to comment
فتى تبوك Posted December 2, 2012 Author Share Posted December 2, 2012 عدلت كودي ماشتغل بعد Link to comment
فتى تبوك Posted December 2, 2012 Author Share Posted December 2, 2012 عدلت كودي+ تاكد انك ظايف ملف الصوت للميتا "2.mp3" /> ضايفه من زمان Link to comment
==>ҭᾄlᾄl Posted December 2, 2012 Share Posted December 2, 2012 اكتب في اف8 debugscript 3 وشوف وش الاخطاء + اطرح كودك كامل Link to comment
فتى تبوك Posted December 2, 2012 Author Share Posted December 2, 2012 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(242,105,350,310,"",false) GUIEditor_Button[1] = guiCreateButton(0.3,0.3968,0.3486,0.2097,"",true,GUIEditor_Window[1]) سوها بهاذي النافذه Link to comment
TAPL Posted December 2, 2012 Share Posted December 2, 2012 السلام عليكم ورحمة الله وبركاتهمساكم الله بالخير يالربع ياشباب صححو لي كود isPlay = false addEventHandler ("onClientGUIClick", root, function() if ( isPlay == false and source == GUIEditor_Button[2] ) then sound = playSound("2.mp3") isPlay = true else stopSound(sound) isPlay = false end end ) نصحح لك و حنا ما نعرف وش الي تبي تسويه؟ Link to comment
abu5lf Posted December 2, 2012 Share Posted December 2, 2012 للاسف ولا كود اشتغلانا ابي مسوي زر وابي اذا ضغت الزر تشتغل واذا ضغطه مره ثانيه تطفي Link to comment
iPrestege Posted December 2, 2012 Share Posted December 2, 2012 السلام عليكم ورحمة الله وبركاتهمساكم الله بالخير يالربع ياشباب صححو لي كود isPlay = false addEventHandler ("onClientGUIClick", root, function() if ( isPlay == false and source == GUIEditor_Button[2] ) then sound = playSound("2.mp3") isPlay = true else stopSound(sound) isPlay = false end end ) نصحح لك و حنا ما نعرف وش الي تبي تسويه؟ تابل هو يـبـي يوم يضـغط الزر يشغل صوت ويوم يضغطة ثانية يطفا الصوت Link to comment
TAPL Posted December 2, 2012 Share Posted December 2, 2012 addEventHandler('onClientGUIClick',root, function () if(source==GUIEditor_Button[2]) if(isElement(sound)then stopSound(sound) else sound = playSound('2.mp3') end end end) ××× addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then if isElement(sound) then stopSound(sound) end sound = playSound("2.mp3") end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(242,105,350,310,"",false) GUIEditor_Button[1] = guiCreateButton(0.3,0.3968,0.3486,0.2097,"",true,GUIEditor_Window[1]) addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[1] then if isElement(sound) then stopSound(sound) end sound = playSound("2.mp3") end end ) Link to comment
فتى تبوك Posted December 2, 2012 Author Share Posted December 2, 2012 addEventHandler('onClientGUIClick',root, function () if(source==GUIEditor_Button[2]) if(isElement(sound)then stopSound(sound) else sound = playSound('2.mp3') end end end) ××× addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then if isElement(sound) then stopSound(sound) end sound = playSound("2.mp3") end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(242,105,350,310,"",false) GUIEditor_Button[1] = guiCreateButton(0.3,0.3968,0.3486,0.2097,"",true,GUIEditor_Window[1]) addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[1] then if isElement(sound) then stopSound(sound) end sound = playSound("2.mp3") end end ) هاذا يعيد مايووقف انا ابي اذا ضغطت يوقف Link to comment
TAPL Posted December 2, 2012 Share Posted December 2, 2012 هاذا يعيد مايووقف انا ابي اذا ضغطت يوقف addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[1] then if isElement(sound) then stopSound(sound) else sound = playSound("2.mp3") end end end) Link to comment
فتى تبوك Posted December 2, 2012 Author Share Posted December 2, 2012 هاذا يعيد مايووقف انا ابي اذا ضغطت يوقف addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[1] then if isElement(sound) then stopSound(sound) else sound = playSound("2.mp3") end end end) بيض الله وجهك سلمت يالذيب 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