Jump to content

Radio script doesnt really work


Recommended Posts

Hey, i made a simple radio script, it works alright but after some time its just stops. Its really random, sometime it works for 10 secounds and sometime it works for minutes. i tried different urls but it doesnt change, i downloaded other radio scripts to see if i made something wrong, but i dont see anything, i play the sound on client side.

Link to comment
                        if isInSlot(x, y, itemWidth, itemHeight) then
                            selectedRadio = radios[index].name
                            selectedRadioURL = radios[index].url

                            if isElement(radioP) then 
                                destroyElement(radioP)
                            end
                            
                            radioP = playSound(radios[index].url)
                            setSoundVolume(radioP, hangero/50)

                            pausebutton = true
                        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...