AboFaisal Posted June 19, 2013 Posted June 19, 2013 وين الخطاء ؟؟ إذا ضغطت زر ينطفي صوت .. addEventHandler("onClientGUIClick",root, function() if source == No then StopSound(lol.mp3) end end )
PaiN^ Posted June 19, 2013 Posted June 19, 2013 stopSound + لازم توقف عنصر صوت محدد تحت متغير مو موقع ملف
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 stopSound + لازم توقف عنصر صوت محدد تحت متغير مو موقع ملف مآ أضن لآزم الكآبيتل أو السمول ... بس جربت ولا ضببط
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 شوف هذا الكود كامل بس كودين .. هم ماعرفت أدمجهم addEventHandler("onClientGUIClick",root, function() if source == No then stopSound(lol.mp3) end end ) addEventHandler("onClientGUIClick",root, function() if source == Yes then StartSound(lol.mp3) end end )
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 !! لازم الكابيتال او السمول+ اقرأ ردي زي الناس هو كان سمول بس أنا عدلته لأني مالاحضت في lua الأحمر مثل stopsound فقلت خلني أغيرها يمكن تكون حمرآ مثل الستوب وهي من الأساس سمول
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 اطرح الكود كامل .. addEventHandler("onClientGUIClick",root, function() if source == No then stopSound(lol.mp3) end end ) addEventHandler("onClientGUIClick",root, function() if source == Yes then StartSound(lol.mp3) end end ) الأكواد موب مندمجه هل المشكله هي بالدمج ؟؟ وأدمجهآ إذا المشكله من الدمج !
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 ورني الكود اللي تشغل الصوت منة ~_~ ؟ هو زرين .. بس وهاذي الوضيفه ....
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 ورني الكود اللي تشغل منة الصوت للمرة الثانية ؟ Yes = guiCreateButton(150,400,100,47,"Start",false,Wnds1) No = guiCreateButton(150,400,100,47,"Stop",false,Wnds1)
iPrestege Posted June 19, 2013 Posted June 19, 2013 ياخي ماطلبت الزر؟ طلبت الفنكشن اللي تشغل منة الزر ؟ حق الصوت
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 ياخي ماطلبت الزر؟ طلبت الفنكشن اللي تشغل منة الزر ؟حق الصوت طيييييييب هو اللي عطيتك أول مره !!!!!! انا أبيه بزر بس تضغطه ويشتغل بس !!! والصوت أشتغل .. بس أطفاء الصوت خربان مدري شفيه ..
Tete omar Posted June 19, 2013 Posted June 19, 2013 addEventHandler("onClientGUIClick", No, function() stopSound("lol.mp3") end, false )
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 addEventHandler("onClientGUIClick", No, function() stopSound("lol.mp3") end, false ) مآزبط
iPrestege Posted June 19, 2013 Posted June 19, 2013 addEventHandler('onClientGUIClick',guiRoot, function ( ) if ( source == Yes ) then aSound = playSound ( 'lol.mp3' ) elseif ( source == No ) then if isElement ( aSound ) then destroyElement ( aSound ) end end end ) لم يتم التجربة و العذر مآنتبهت لانة كآبيتآل ..
AboFaisal Posted June 19, 2013 Author Posted June 19, 2013 addEventHandler('onClientGUIClick',guiRoot, function ( ) if ( source == Yes ) then aSound = playSound ( 'lol.mp3' ) elseif ( source == No ) then if isElement ( aSound ) then destroyElement ( aSound ) end end end ) لم يتم التجربة و العذر مآنتبهت لانة كآبيتآل .. تسلم
iPrestege Posted June 19, 2013 Posted June 19, 2013 الله يسلمك .. لآ آحلل استخدامة فـي مآلآيرضي الله..
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