I am getting an weird Runtime error
#1

Okay so i got a host and when i start the script on my Computer (Home hosted) it works fine, Then after i uploaded it to the host i am using i getting this Runtime Errors...

Код:
[00:06:07] [debug] Run time error 19: "File or function is not found"
[00:06:07] [debug]  Audio_Seek
[00:06:07] [debug] Run time error 19: "File or function is not found"
[00:06:07] [debug]  Audio_Seek
and the script code on that lines is...
Код:
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;
}
Please help me figure it out. :S
Reply
#2

Load the Audio Plugin.
Reply
#3

Problem Solved
Reply


Forum Jump:


Users browsing this thread: