[HELP] Audio_Seek
#1

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

Reply
#2

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

I had this problem!,

You need to use Audio Plugin 0.4 or it wont work

Thats how i fixed it.
Reply
#4

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

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

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

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)