-ffn-python Posted September 12, 2015 Posted September 12, 2015 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)
-ffn-python Posted September 12, 2015 Author Posted September 12, 2015 addEventHandler("onClientResourceStart", resourceRoot, function() local Muzik = playSound(tostring( createMP3Music ), true) end )
JR10 Posted September 12, 2015 Posted September 12, 2015 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 )
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