Audio Seek Errors
#1

When I compile my gamemode it keep giving me these errors, how do I fix these errors?

Errors:
Quote:

C:\Users\Admin\Desktop\VGRP.pwn(3448 ) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Users\James\Desktop\SLRP.pwn(3501) : error 017: undefined symbol "Audio_Seek"
C:\Users\James\Desktop\SLRP.pwn(3533) : error 017: undefined symbol "Audio_Seek"
C:\Users\James\Desktop\SLRP.pwn(3511) : warning 203: symbol is never used: "seek"
C:\Users\James\Desktop\SLRP.pwn(3563) : error 017: undefined symbol "Audio_Seek"
C:\Users\James\Desktop\SLRP.pwn(3542) : warning 203: symbol is never used: "seek"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

Code:
Quote:

public Audio_OnClientConnect(playerid)
{
new string[128];
format(string,sizeof(string),"(Audio Plugin) %s(%d) has connected to the audio server.",GetPlayerNameEx(playerid),playerid);
SendClientMessageEx(playerid, 0xA9C4E4FF, string);
SendClientMessageEx(playerid, 0xA9C4E4FF, "(Audio Plugin) Checking and downloading audio files, Please wait...");
Audio_TransferPack(playerid);
return 1;
}

public Audio_OnPlay(playerid, handleid)
{
//new string[128];
//format(string, sizeof(string), "(Audio Plugin) Debug: Audio playback started for handle ID %d.", handleid);
//SendClientMessage(playerid, 0xA9C4E4FF, string);
}

public Audio_OnStop(playerid, handleid)
{
//new string[128];
//format(string, sizeof(string), "(Audio Plugin) Debug: Audio playback stopped for handle ID %d.", handleid);
//SendClientMessage(playerid, 0xA9C4E4FF, string);
}

public Audio_OnTransferFile(playerid, file[], current, total, result)
{
if (current == total)
{
SendClientMessageEx(playerid, 0xA9C4E4FF, "(Audio Plugin) All audio files have been downloaded and processed, Thank you!");
SendAudioToPlayer(playerid, 1183, 100, 0);
}
return 1;
}

public Audio_OnSetPack(audiopack[])
{
foreach(Player, i)
{
Audio_TransferPack(i);
}
return 1;
}

public Audio_OnClientDisconnect(playerid)
{
new string[128];
format(string,sizeof(string),"(Audio Plugin) %s(%d) has disconnected from the audio server.",GetPlayerNameEx(playerid),playerid);
SendClientMessageEx(playerid, 0xA9C4E4FF, string);
return 1;
}

public Audio_OnTrackChange(playerid, handleid, track[])
{
new string[128];
//format(string, sizeof(string), "(Audio Plugin) Debug: Now playing \"%s\" for handle ID %d.", track, handleid);
//SendClientMessage(playerid, 0xA9C4E4FF, string);
format(string, sizeof(string), "* Now Playing: %s.",track);
SendClientMessageEx(playerid, COLOR_PURPLE, string);
return 1;
}

SendBlankAudioTick(playerid)
{
if(IsPlayerConnected(playerid))
{
if(Audio_IsClientConnected(playerid))
{
new handleid = Audio_Play(playerid, 1, false, false, false);
Audio_SetVolume(playerid, handleid, 0);
}
else
{
return 0;
}
}
return 1;
}

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

SendAudioToRange(audioid, 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_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: 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;
}
}
}
}
return audiohandleglobal;
}

Reply
#2

https://sampforum.blast.hk/showthread.php?tid=321242

Search next time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)