Jump to content

PlaySound


Recommended Posts

Posted

Hola Chicos, Si Me Pudieran Ayudar Aca, Es que Tengo Un Error. . .

function musicax () 
        sound = playSound( "musi.mp3", true ) 
    end 
    addCommandHandler ( "star", musicax ) 
      
    function musicaz () 
        stopSound (sound) 
    end 
    addCommandHandler ( "stop", musicaz ) 

Cuando le doy al Comando /star

Me sale En el debugscript 3 lo siguiente.

ERROR: Musica\music.lua:2: attempt to call global 'playSound' (a nil value)

Ayuda pls

Posted

playSound es solo client side, tu script debe de estar puesto como server side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Wow que Logica :shock: ._." Lo tenia en meta haci

                 

Pense que sin ponerle el Tipo Estaria Bien Como el 99% De los pocos Scripts que e echo.

Pero le coloque el:

y me funciono Gracias, Pero , Como Aria para que cuando terminara esa, automáticamente comience otra y así Susecibamente? . . .

Posted

Creas una tabla con las musicas, y vas cambiando.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • MTA Team
Posted

Acuerdate de ejecutar un timer, para cambiar de cancion ;)

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...