Jump to content

Socorro porfisssss


Arsilex

Recommended Posts

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

Link to comment
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:

Link to comment
    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.

Link to comment
    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...

Link to comment

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 

Link to comment
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
Link to comment
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 

Link to comment
  • Recently Browsing   0 members

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