SA-MP Forums Archive
Problem with Audio Plugin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with Audio Plugin (/showthread.php?tid=552084)



Problem with Audio Plugin - gabriele1234 - 22.12.2014

Hi,
I have problem:
This script doesn't work correctly:
Код:
for(new a=0; a<MAX_PLAYERS; a++)
{
        if(IsPlayerConnected(a))
	{
 		if(PlayerToPoint(35,a,vehx, vehy,vehz))
	    	{
 			Audio_Stop(a,stereo[a][idvec][sound]);
		  	stereo[a][idvec][sound] = Audio_PlayStreamed(a,"http://**********:8000/listen.pls?sid=1",true,false,false);
			stereo[a][idvec][Srange] = 35;
		  	stereo[a][idvec][volume] = 100;
			Audio_Set3DPosition(a,stereo[a][idvec][sound],vehx,vehy,vehz,stereo[a][idvec][Srange]);
	          	Audio_Resume(a,stereo[a][idvec][sound]);
		}
	}
}
The sound doesn't move with the vehicle and stays in place
Help Me, Sorry for my english
ENUM
Код:
enum stereos
{
	sound,
 	volume,
 	Float:Srange,
};
new stereo[MAX_PLAYERS][MAX_VEHICLES][stereos];
until a few days ago the same script worked