Audio.inc PROBLEMS !
#1

Код:
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(14) : error 031: unknown directive
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(3419) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(3472) : error 017: undefined symbol "Audio_Seek"
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(3504) : error 017: undefined symbol "Audio_Seek"
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(3482) : warning 203: symbol is never used: "seek"
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(3534) : error 017: undefined symbol "Audio_Seek"
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(3513) : warning 203: symbol is never used: "seek"
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(17215) : error 017: undefined symbol "distance"
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(17215) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(17215) : error 001: expected token: ";", but found ")"
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(17215) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\IRP\gamemodes\I-RP.pwn(17215) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
I downloaded the new Audio.inc i installed it and tried to re-compile it gives me the Same Errors.
Reply
#2

Try this:

pawn Код:
public Audio_OnSetPack(audiopack[])
{
    foreach(Player, i)
    {
        Audio_TransferPack(i);
    }
    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); //3397
                    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); //3427
                    audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return audiohandleglobal;
}
_________________________________________________________________________

HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .distance = 30.0); //16900 (This code was over 1000 lines long so i didnt take all of the code, only the error line.)
Also rename "Audio_Seek" to "Audio_OnSetPack"

Hope i helped you(REP).
Reply
#3

It did not work,
Reply
#4

update your audio https://sampforum.blast.hk/showthread.php?tid=82162 then after recomplie it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)