warning 203: symbol is never used: "seek"
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I assume this is from line 95890 because I can see "name" but not "seek".

pawn Код:
CMD:mask(playerid, params[])// Fixed/Brand new - Willowfield
{
    new name[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pMask] == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                ShowPlayerNameTagForPlayer(i, playerid, 0);
            }
        }
        PlayerInfo[playerid][pMask] = 1;
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s has put a mask on.", name);
        ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else if(PlayerInfo[playerid][pMask] == 1 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                ShowPlayerNameTagForPlayer(i, playerid, 1);
            }
        }
        PlayerInfo[playerid][pMask] = 0;
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s has put their mask away.", name);
        ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    return 1;
}
And about "seek". You declare it but you never use it somewhere. Use it or remove it.
I'm now got:
Код:
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(4905) : warning 203: symbol is never used: "seek"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(4936) : warning 203: symbol is never used: "seek"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : error 017: undefined symbol "string"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : error 017: undefined symbol "string"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : fatal error 107: too many error messages on one line

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


4 Errors.
pawn Код:
SendAudioToRange(audioid, volume, seek, Float:x, Float:y, Float:z, Float:range)  // this is line 4905
{
    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_SetPosition(playerid, handleid, seconds);
                    audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return audiohandleglobal;
}


stock SendAudioURLToRange(url[], volume, seek, Float:x, Float:y, Float:z, Float:range) // line 4936
{
    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_SetPosition(playerid, handleid, seconds);
                    audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return audiohandleglobal;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)