Errors with Audio_Seek
#1

Hey I have errors of the lines theres : Audio_Seek

Код:
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;
}
What to do ?

I added : new Audio_Seek; Its make more errors so I removed what to do ?

Errors :

Код:
C:\Users\Desktop\\gamemodes\.pwn(3433) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Users\\Desktop\\gamemodes\.pwn(3486) : error 017: undefined symbol "Audio_Seek"
C:\Users\\Desktop\\gamemodes\.pwn(3518) : error 017: undefined symbol "Audio_Seek"
C:\Users\\Desktop\\gamemodes\.pwn(3496) : warning 203: symbol is never used: "seek"
C:\Users\\Desktop\\gamemodes\.pwn(3548) : error 017: undefined symbol "Audio_Seek"
C:\Users\\Desktop\\gamemodes\.pwn(3527) : warning 203: symbol is never used: "seek"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)