Jump to content

stopSound Problem.


-ffn-python

Recommended Posts

Posted

Hey.

What's The Problem I Can't Find It

debug script error :"Bad argument"

  
-- #Client Side 
addEvent("Muzik", true) 
addEventHandler("Muzik",root, 
function() 
stopSound(Muzik) 
end 
) 
-- #Server Side 
triggerClientEvent(player,"Muzik",player) 

Posted

Muzik is local to the handling function, so it doesn't exist for the rest of the code.

local Muzik 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
Muzik = playSound(tostring( createMP3Music ), true) 
end 
) 

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...