18.08.2012, 23:57
Hello SA-MP Members I've got one problem here I got 3 errors and their are all same and the name of the error is Audio_Seek here's the error log and the line.
Код:
D:\games\Great World Roleplay\gamemodes\DSRP.pwn(3696) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack") D:\games\Great World Roleplay\gamemodes\DSRP.pwn(3749) : error 017: undefined symbol "Audio_Seek" D:\games\Great World Roleplay\gamemodes\DSRP.pwn(3781) : error 017: undefined symbol "Audio_Seek" D:\games\Great World Roleplay\gamemodes\DSRP.pwn(3759) : warning 203: symbol is never used: "seek" D:\games\Great World Roleplay\gamemodes\DSRP.pwn(3811) : error 017: undefined symbol "Audio_Seek" D:\games\Great World Roleplay\gamemodes\DSRP.pwn(3790) : warning 203: symbol is never used: "seek" D:\games\Great World Roleplay\gamemodes\DSRP.pwn(3846) : warning 211: possibly unintended assignment D:\games\Great World Roleplay\gamemodes\DSRP.pwn(38198) : warning 204: symbol is assigned a value that is never used: "rand" D:\games\Great World Roleplay\gamemodes\DSRP.pwn(46530) : warning 211: possibly unintended assignment D:\games\Great World Roleplay\gamemodes\DSRP.pwn(93147) : warning 203: symbol is never used: "IsAtNameChange" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
Код:
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;
}


Audio_Seek to Audio_SetPosition