GriLLeX Posted April 24, 2010 Posted April 24, 2010 Hi, I created a command that triggers a sound, only the sound part and DOS server comes the error "test.lua: 148: elderly to call global 'PlaySound' " I put in the file meta.xml What can be? The code I used is this: function Suono() local sound = playSound("data/test.mp3") setSoundVolume(sound, 1.0) end addCommandHandler ( "testd", Suono )
Aibo Posted April 24, 2010 Posted April 24, 2010 playSound is a client-only function, is your script added as client? like:
GriLLeX Posted April 24, 2010 Author Posted April 24, 2010 Ok, thanks for the solution. P.S: Sorry for my bad English...
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