Jump to content

تصحيح بسيط


h-a-m-z-a

Recommended Posts

ابي الاغاني لما تخلص الاولى يروح لتانية وكدالك المرجوا الاجابة

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

طيب انت حاطها عند خول السيرفر تشتغل الاصوات كلها

انت اول شيء حط لكل مقطع تايمر خاص فيه

مثلا المقطع الاول طوله 3 ثواني

تحط اللي بعده يشتغل بعد 3 ثواني

وكذا

اذا فيه طريقة اسهل مايقصرو معاك العيال

اتمنى فهمت

Link to comment

اتوقع في طريقة اسهل مثال اول ماتدخل تجي اغنية بعدين تسوي وقت للأغنية الثانية يعني تبدا بعد 4 دقايق وذيك توقف بعدين تبدا ذي والثالثة تخليها بعد 6 دقايق وذي تخلص

بعدين تبدا الثانية ان شاء الله فهمت

setTimer 

Link to comment

سويت دا الكود ممكن تصحيح

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

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 by Guest
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...