SA-MP Forums Archive
[HELP] Audio_Seek - 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: [HELP] Audio_Seek (/showthread.php?tid=339739)



[HELP] Audio_Seek - _DB_D3M0 - 04.05.2012

[19:44:20] Error: Function not registered: 'Audio_Seek'
[19:44:20] Script[gamemodes/MS-RP.amx]: Run time error 19: "File or function is not found"
[19:44:20] Number of vehicle models: 0

Is someone able to identify whats wrong with this and help me find the solution to my problem?



Quote:

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;
}




Re: [HELP] Audio_Seek - WarriorEd22 - 04.05.2012

Use Native Checker Plugin. https://sampforum.blast.hk/showthread.php?tid=249226


Re: [HELP] Audio_Seek - Oscii - 04.05.2012

I had this problem!,

You need to use Audio Plugin 0.4 or it wont work

Thats how i fixed it.


Re: [HELP] Audio_Seek - _DB_D3M0 - 05.05.2012

So just replace all the include files and it'll work?


Re: [HELP] Audio_Seek - Skaizo - 12.07.2012

open your gamemode.pwn search
Audio_Seek
replace with
Audio_SetPosition
becouse the creator of audio plugin had change function


Re: [HELP] Audio_Seek - amitdahari - 08.08.2013

but now i have this Errors:
Quote:

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