^#Dream Posted August 20, 2014 Share Posted August 20, 2014 السلام عليكم انا عندي مشكلة انا مسوي كذا local sounds = { "رابط 1", "رابط 2", } playSound(sounds[math.random(1, #sounds)], false) ^ هذا على ماظن المفروض يشغل الرابط الاول واذا خلص يشغل الرابط الثاني بس مازبط مدري ليش الديبوق مايقول شي # Link to comment
</Mr.Tn6eL> Posted August 20, 2014 Share Posted August 20, 2014 السلام عليكم انا عندي مشكلةانا مسوي كذا local sounds = { "رابط 1", "رابط 2", } playSound(sounds[math.random(1, #sounds)], false) ^ هذا على ماظن المفروض يشغل الرابط الاول واذا خلص يشغل الرابط الثاني بس مازبط مدري ليش الديبوق مايقول شي # playSound(sounds[math.random(1, #sounds)], true) Link to comment
AboShanab Posted August 20, 2014 Share Posted August 20, 2014 playSound(sounds[math.random(1, #sounds)], true) كودك يخلي الاغنية المشغلة تتكرر ! Link to comment
</Mr.Tn6eL> Posted August 20, 2014 Share Posted August 20, 2014 playSound(sounds[math.random(1, #sounds)], true) كودك يخلي الاغنية المشغلة تتكرر ! نعم هو قال ان المشكلة الاغنية تتوقف هذا للي فهمته اذ كان قصدة يغير الصوت بعد ماتخلص يستعمل "onClientSoundStopped" Link to comment
#DRAGON!FIRE Posted August 20, 2014 Share Posted August 20, 2014 استخدم متغير وجيب القيم من الجدول واستخدم حدث توقف الاغنية .. وهكذا 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