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

I was making a mask system and I'm getting these errors.

pawn Код:
:mask(playerid, params[])// Fixed/Brand new - Willowfield
{
    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;
}

Код:
Desktop\DSRP1\gamemodes\RZRP.pwn(4904) : warning 203: symbol is never used: "seek"
Desktop\DSRP1\gamemodes\RZRP.pwn(4935) : warning 203: symbol is never used: "seek"
Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 017: undefined symbol "name"
Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 017: undefined symbol "name"
Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 029: invalid expression, assumed zero
Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

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.
Reply
#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
#4

Show us the code, we cannot read your mind.
Reply
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Show us the code, we cannot read your mind.
Hahah!! I was in the middle of putting it in.
Reply
#6

You don't use seek at all, why do you use it as a parameter then?

If you still want the parameter, do inside:
pawn Код:
#pragma unused seek
Or

Change to:
pawn Код:
SendAudioToRange(audioid, volume, Float:x, Float:y, Float:z, Float:range)

and to:
pawn Код:
SendAudioURLToRange(url[], volume, Float:x, Float:y, Float:z, Float:range)
And wherever you've used those functions above, remove their 3rd parameter which is seek.

And at the line 96057, do:
pawn Код:
new string[128];
Reply
#7

I've now gotten:
Код:
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(14424) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(14950) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(14991) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(34639) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(81919) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : error 017: undefined symbol "string"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : error 017: undefined symbol "string"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : 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(10300, 100, 0, X, Y, Z, 20.0);
pawn Код:
SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0);
pawn Код:
SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0);
pawn Код:
new audioid = SendAudioToRange(soundid,volume,seek,aX,aY,aZ,range);
pawn Код:
new audioid = SendAudioURLToRange(inputtext,volume,seek,aX,aY,aZ,range);
pawn Код:
format(string, sizeof(string), "* %s has put their mask away.", name);
The errors with the lines go down the list.
Reply
#8

Edit:
Код:
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4924) : error 017: undefined symbol "audioid"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905) : warning 203: symbol is never used: "url"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905 -- 4936) : error 025: function heading differs from prototype
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905 -- 4937) : error 021: symbol already defined: "SendAudioURLToRange"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905 -- 4937) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#9

You didn't read what I said. If you don't use the seek at all and you don't want to keep it to your script, remove it as parameter and wherever you've used it, remove it from there as well (3rd parameter).

pawn Код:
SendAudioToRange(10300, 100, X, Y, Z, 20.0);
pawn Код:
SendAudioToRange(10300, 100, X, Y, Z, 20.0);
pawn Код:
SendAudioToRange(10300, 100,X, Y, Z, 20.0);
pawn Код:
new audioid = SendAudioToRange(soundid,volume,aX,aY,aZ,range);
pawn Код:
new audioid = SendAudioURLToRange(inputtext,volume,aX,aY,aZ,range);
pawn Код:
new string[64]; format(string, sizeof(string), "* %s has put their mask away.", name);
But if you want to use the parameter "seek" later, don't change the parameters and just use #pragma unused seek like I told you before.

EDIT: You are now missing bracket(s), do Ctrl + Z to undo.
Reply
#10


Код:
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(67) : error 017: undefined symbol "seek"
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(81927) : warning 204: symbol is assigned a value that is never used: "seek"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I've now only got these.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)