if(Audio_IsClientConnected(playerid)) { new localhandle = Audio_Play(playerid,audioid,false,false,false); Audio_SetVolume(playerid, localhandle, volume); Audio_Seek(playerid, localhandle, seek); } else { return 0; } } return 1; } SendAudioToRange(audioid, volume, seek, Float, Float:y, Float:z, Float:range) { if(audiohandleglobal >= 99) { audiohandleglobal = 0; } else { audiohandleglobal++; } foreach(Player, i) { if(IsPlayerConnected(i)) { if(Audio_IsClientConnected(i)) { if(IsPlayerInRangeOfPoint(i,range,x,y,z)) { new localhandle = Audio_Play(i,audioid,false,false,false); Audio_Set3DPosition(i, localhandle, x, y, z, range); Audio_SetVolume(i, localhandle, volume); Audio_Seek(i, localhandle, seek); audiohandle[i][audiohandleglobal] = localhandle; } } } } return audiohandleglobal; } stock SendAudioURLToRange(url[], volume, seek, Float, Float:y, Float:z, Float:range) { if(audiohandleglobal >= 99) { audiohandleglobal = 0; } else { audiohandleglobal++; } foreach(Player, i) { if(IsPlayerConnected(i)) { if(Audio_IsClientConnected(i)) { if(IsPlayerInRangeOfPoint(i,range,x,y,z)) { new localhandle = Audio_PlayStreamed(i,url,false,false,false); Audio_Set3DPosition(i, localhandle, x, y, z, range); Audio_SetVolume(i, localhandle, volume); Audio_Seek(i, localhandle, seek); audiohandle[i][audiohandleglobal] = localhandle; } } } } return audiohandleglobal; } |
G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(369 : error 017: undefined symbol "Audio_SetPosition" G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(3730) : error 017: undefined symbol "Audio_SetPosition" G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(370 : warning 203: symbol is never used: "seek" G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(3760) : error 017: undefined symbol "Audio_SetPosition" G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(3739) : warning 203: symbol is never used: "seek" G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(11291) : warning 209: function "Streamer_OnPlayerLeaveRaceCP" should return a value G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(29451) : warning 206: redundant test: constant expression is non-zero G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(29460) : warning 205: redundant code: constant expression is zero G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(29461) : warning 205: redundant code: constant expression is zero G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(29501) : warning 206: redundant test: constant expression is non-zero G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(29510) : warning 205: redundant code: constant expression is zero G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(29511) : warning 205: redundant code: constant expression is zero G:\bgrp\BGRP - Copy - Copy (2)\gamemodes\lgrp.pwn(73465) : warning 204: symbol is assigned a value that is never used: "adds" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |