h-a-m-z-a Posted November 17, 2013 Share Posted November 17, 2013 ابي الاغاني لما تخلص الاولى يروح لتانية وكدالك المرجوا الاجابة addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() -- little interval, music is getting laggy when all resources are starting.. setTimer(function() playSound("0.mp3") playSound("1.mp3") playSound("2.mp3") playSound("3.mp3") playSound("4.mp3") playSound("5.mp3") playSound("6.mp3") playSound("7.mp3") playSound("8.mp3") playSound("9.mp3") end, 200, 1) end ) Link to comment
h-a-m-z-a Posted November 17, 2013 Author Share Posted November 17, 2013 المشكلة في دا الكود كل الاغاني تشتغل مع بعضها Link to comment
MOMO3011 Posted November 17, 2013 Share Posted November 17, 2013 خخخخ هلا حمزة عرفتني انا مصطفى Link to comment
MhLoSs Posted November 18, 2013 Share Posted November 18, 2013 طيب انت حاطها عند خول السيرفر تشتغل الاصوات كلها انت اول شيء حط لكل مقطع تايمر خاص فيه مثلا المقطع الاول طوله 3 ثواني تحط اللي بعده يشتغل بعد 3 ثواني وكذا اذا فيه طريقة اسهل مايقصرو معاك العيال اتمنى فهمت Link to comment
نصراوي Posted November 18, 2013 Share Posted November 18, 2013 اتوقع في طريقة اسهل مثال اول ماتدخل تجي اغنية بعدين تسوي وقت للأغنية الثانية يعني تبدا بعد 4 دقايق وذيك توقف بعدين تبدا ذي والثالثة تخليها بعد 6 دقايق وذي تخلص بعدين تبدا الثانية ان شاء الله فهمت setTimer Link to comment
h-a-m-z-a Posted November 18, 2013 Author Share Posted November 18, 2013 سويت دا الكود ممكن تصحيح addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() -- little interval, music is getting laggy when all resources are starting.. setTimer(function() (setTimer ( playSound("0.mp3"), 1000, 1))then (setTimer ( playSound("1.mp3"), 1000, 1))then (setTimer ( playSound("2.mp3"), 5000, 1))then (setTimer ( playSound("3.mp3"), 15000, 1))then (setTimer ( playSound("4.mp3"), 19000, 1))then (setTimer ( playSound("5.mp3"), 30000, 1))then (setTimer ( playSound("6.mp3"), 40000, 1))then (setTimer ( playSound("7.mp3"), 150000, 1))then (setTimer ( playSound("8.mp3"), 80000, 1))then (setTimer ( playSound("9.mp3"), 10000, 1))then end end ) Link to comment
The Killer Posted November 18, 2013 Share Posted November 18, 2013 (edited) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() setTimer(function() setTimer ( playSound, 1000, 1, "0.mp3") setTimer ( playSound, 1000, 1, "1.mp3") setTimer ( playSound, 5000, 1, "2.mp3") setTimer ( playSound, 15000, 1, "3.mp3") setTimer ( playSound, 19000, 1, "4.mp3") setTimer ( playSound, 30000, 1, "5.mp3") setTimer ( playSound, 40000, 1, "6.mp3") setTimer ( playSound, 50000, 1, "7.mp3") setTimer ( playSound, 80000, 1, "8.mp3") setTimer ( playSound, 100000, 1, "9.mp3") end) end ) Edited November 18, 2013 by Guest Link to comment
jafar Posted November 18, 2013 Share Posted November 18, 2013 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() setTimer(function() setTimer ( playSound, 1000, 1, "0.mp3") setTimer ( playSound, 1000, 1, "1.mp3") setTimer ( playSound, 5000, 1, "2.mp3") setTimer ( playSound, 15000, 1, "3.mp3") setTimer ( playSound, 19000, 1, "4.mp3") setTimer ( playSound, 30000, 1, "5.mp3") setTimer ( playSound, 40000, 1, "6.mp3") setTimer ( playSound, 50000, 1, "7.mp3") setTimer ( playSound, 80000, 1, "8.mp3") setTimer ( playSound, 100000, 1, "9.mp3") 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