Audio_Seek Problem ! Rush! - 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: Audio_Seek Problem ! Rush! (
/showthread.php?tid=565746)
Audio_Seek Problem ! Rush! -
ChuckyBabe - 01.03.2015
Whenever i compile my script this error always comes
Code:
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(3684) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(3737) : error 017: undefined symbol "Audio_Seek"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(3769) : error 017: undefined symbol "Audio_Seek"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(3747) : warning 203: symbol is never used: "seek"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(3799) : error 017: undefined symbol "Audio_Seek"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(3778) : warning 203: symbol is never used: "seek"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(8568) : warning 225: unreachable code
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(8569) : warning 209: function "Audio_OnPlayerConnect" should return a value
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(51263) : warning 216: nested comment
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(51362) : warning 216: nested comment
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(64700) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(65009) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(65031) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(65042) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(65052) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(65067) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(77354) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(77358) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(77367) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(77371) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(77380) : warning 217: loose indentation
C:\Users\Windows7\Desktop\Microsoft Corporation ©\El Pilipinas Roleplay v4\gamemodes\EPRP.pwn(77384) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Help me fix this errors!
Line 3737
Code:
forward SendAudioToPlayer(playerid, audioid, volume, seek);
public SendAudioToPlayer(playerid, audioid, volume, seek)
{
if(IsPlayerConnected(playerid))
{
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;
}
Line 3769
Code:
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;
}
}
}
}
Line 3799
Code:
stock SendAudioURLToRange(url[], volume, seek, Float:x, 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;
}
}
}
}
P.S I already updated my Audio Plugin.. +1 Reputation for help!