Jump to content

Socorro porfisssss


Arsilex

Recommended Posts

Posted
function M1 (thePlayer) 
local vehicle = getPedOccupiedVehicle ( thePlayer ) 
local x,y,z = getElementPosition( vehicle ) 
sound1 = playSound3D( "http://listen.radionomy.com/a-rockradio.m3u", x, y, z, true ) 
setSoundVolume( sound, 5 ) 
setSoundMaxDistance( sound, 10 ) 
end 

por que me da error en getElementPosition?????

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted
function M1 (thePlayer) 
local vehicle = getPedOccupiedVehicle ( thePlayer ) 
local x,y,z = getElementPosition( vehicle ) 
sound1 = playSound3D( "http://listen.radionomy.com/a-rockradio.m3u", x, y, z, true ) 
setSoundVolume( sound, 5 ) 
setSoundMaxDistance( sound, 10 ) 
end 

por que me da error en getElementPosition?????

Segun veo hay errores , por ejemplo , no reproduce formato .m3u. , y seria

playSound 

... :roll:

------------------------------------------------------------------------------------------

My scripts

http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977

http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740

Posted
    sound = playSound3D( "http://listen.radionomy.com/radio--enigma.m3u", 487.89, -14.51, 1000.67, false ) 
    setElementDimension( sound, 72 ) 
    setElementInterior( sound, 17 ) 
    setSoundVolume( sound, 3 ) 
    setSoundMaxDistance( sound, 100 ) 

y esto si lo reproduce?

PD: Mi problema es el getElementPosticion no lo de musica.

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted
    sound = playSound3D( "http://listen.radionomy.com/radio--enigma.m3u", 487.89, -14.51, 1000.67, false ) 
    setElementDimension( sound, 72 ) 
    setElementInterior( sound, 17 ) 
    setSoundVolume( sound, 0.5 ) 
    setSoundMaxDistance( sound, 100 ) 

y esto si lo reproduce?

Probalo asi...

------------------------------------------------------------------------------------------

My scripts

http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977

http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740

Posted

Note: The only supported audio formats are MP3, WAV, OGG, RIFF, MOD, XM, IT and S3M.

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

pero si vos ejecutas un audio desde una web tambien debe ser con los formatos que soporta

edit: Estas seguro ke entras al mismo interior y la misma dimencion ke le as puesto al sound?

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Como ejecutas la funcion: "M1"?

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

Entonces 'thePlayer' no es un jugador, sino un argumento del evento ese. Tenes que usar 'localPlayer'

function M1 ( ) 
local vehicle = getPedOccupiedVehicle ( localPlayer ) 
local x,y,z = getElementPosition( vehicle ) 
sound1 = playSound3D( "http://listen.radionomy.com/a-rockradio.m3u", x, y, z, true ) 
setSoundVolume( sound, 5 ) 
setSoundMaxDistance( sound, 10 ) 
end 

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 (edited)
function M1 ( ) 
local vehicle = getPedOccupiedVehicle ( localPlayer ) 
local x,y,z = getElementPosition( vehicle ) 
sound = playSound3D( "http://listen.radionomy.com/a-rockradio.m3u", x, y, z, true ) 
setSoundVolume( sound, 5 )-- arriba lo abias definido como sound1 y setSoundVolume tenia sound. 
setSoundMaxDistance( sound, 10 ) 
end 

Edit: Creo que debes usar la funcion

attachElement 

nose si me quivoco

Edited by Guest

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
como ago que cuando el vehicule se mueve que me siga el sound?
attachElements 

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
function M1 ( ) 
local vehicle = getPedOccupiedVehicle ( localPlayer ) 
local x, y, z = getElementPosition( vehicle ) 
sound1 = playSound3D ( "http://listen.radionomy.com/a-rockradio.m3u", x, y, z, true ) 
setSoundVolume ( sound1, 5 ) 
setSoundMaxDistance ( sound1, 10 ) 
attachElements ( sound1, vehicle ) 
end 

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.

  • Recently Browsing   0 members

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