Jump to content

PlaySound error


GriLLeX

Recommended Posts

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 )

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