Audio Plugin Help
#1

I tried to compile my script but i get this error
Код:
G:\Games\Script\uhrp-\pawno\include\audio.inc(37) : error 001: expected token: "-identifier-", but found "-tagname-"
G:\Games\Script\uhrp-\pawno\include\audio.inc(37) : error 001: expected token: ";", but found "-label-"
G:\Games\Script\uhrp-\pawno\include\audio.inc(38) : error 001: expected token: "-identifier-", but found "-tagname-"
G:\Games\Script\uhrp-\pawno\include\audio.inc(38) : error 001: expected token: ";", but found "-label-"
G:\Games\Script\uhrp-\pawno\include\audio.inc(39) : error 001: expected token: "-identifier-", but found "-tagname-"
G:\Games\Script\uhrp-\pawno\include\audio.inc(39) : error 001: expected token: ";", but found "-label-"
G:\Games\Script\uhrp-\gamemodes\UHRP.pwn(8092) : warning 202: number of arguments does not match definition
G:\Games\Script\uhrp-\gamemodes\UHRP.pwn(8092) : warning 202: number of arguments does not match definition
G:\Games\Script\uhrp-\gamemodes\UHRP.pwn(8092) : warning 202: number of arguments does not match definition
G:\Games\Script\uhrp-\gamemodes\UHRP.pwn(8153) : warning 202: number of arguments does not match definition
G:\Games\Script\uhrp-\gamemodes\UHRP.pwn(8153) : warning 202: number of arguments does not match definition
G:\Games\Script\uhrp-\gamemodes\UHRP.pwn(8153) : warning 202: number of arguments does not match definition
This is the line from audio.inc
Код:
native Audio_Play(playerid, audioid, bool:pause = false, bool:loop = false, bool:downmix = false);
native Audio_PlaySequence(playerid, sequenceid, bool:pause = false, bool:loop = false, bool:downmix = false);
native Audio_PlayStreamed(playerid, const url[], bool:pause = false, bool:loop = false, bool:downmix = false);
This is the line from my script
Код:
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);//Line 8092
			Audio_SetVolume(playerid, localhandle, volume);
			Audio_SetPosition(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);// Line 8153
					Audio_Set3DPosition(i, localhandle, x, y, z, range);
					Audio_SetVolume(i, localhandle, volume);
					Audio_SetPosition(i, localhandle, seek);
     				audiohandle[i][audiohandleglobal] = localhandle;
                }
			}
	    }
	}
	return audiohandleglobal;
}
I've tried to update the plugins and includes but the error still the same.
Reply


Messages In This Thread
Audio Plugin Help - by 0B3Y - 06.07.2016, 10:26
Re: Audio Plugin Help - by Mencent - 06.07.2016, 10:57
Re: Audio Plugin Help - by 0B3Y - 06.07.2016, 11:12
Re: Audio Plugin Help - by Mencent - 06.07.2016, 11:16
Re: Audio Plugin Help - by 0B3Y - 06.07.2016, 11:36
Re: Audio Plugin Help - by Mencent - 06.07.2016, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)