Some annoying warnings - HELP!
#1

Sup guys,

I got some annoying warnings (2 to be precisely), and I want to remove them, but everything I do, doesn't work.

Warnings:
pawn Код:
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(4462) : warning 203: symbol is never used: "seek"
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(4492) : warning 203: symbol is never used: "seek"

Part of the script:
pawn Код:
SendAudioToRange(audioid, volume, seek, Float:x, Float:y, Float:z, Float:range)//4462
{
    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);
                    audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return audiohandleglobal;
}

pawn Код:
stock SendAudioURLToRange(url[], volume, seek, Float:x, Float:y, Float:z, Float:range) //4492
{
    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);
                    audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return audiohandleglobal;
}

P.S. I am still searching for some good scripters, so if someone is interested. :/

Cheers,
Bradleyornot
Reply
#2

Код:
SendAudioToRange(audioid, volume, Float:x, Float:y, Float:z, Float:range)//4462
{
	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);
					audiohandle[i][audiohandleglobal] = localhandle;
				}
			}
		}
	}
	return audiohandleglobal;
}
Код:
stock SendAudioURLToRange(url[], volume, Float:x, Float:y, Float:z, Float:range) //4492
{
	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);
					audiohandle[i][audiohandleglobal] = localhandle;
				}
			}
		}
	}
	return audiohandleglobal;
}
Reply
#3

Hmm, this doesn't looks good:
pawn Код:
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(14790) : warning 202: number of arguments does not match definition
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(15370) : warning 202: number of arguments does not match definition
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(15411) : warning 202: number of arguments does not match definition
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(58645) : warning 202: number of arguments does not match definition
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(58763) : warning 202: number of arguments does not match definition
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(78120) : warning 202: number of arguments does not match definition
pawn Код:
SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0); //LINE 14790

                        SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0); //line 15370

                    SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0); //Line 15411

                        SendAudioToRange(6802, 100, 0, rX, rY, rZ, 30.0); //line 58645

                        SendAudioToRange(6802, 100, 0, rX, rY, rZ, 30.0); //line 58763

            new audioid = SendAudioURLToRange(inputtext,volume,seek,aX,aY,aZ,range);  //line 78120
Any ideas?
Reply
#4

Anyone?
Reply
#5

You've defined the parameters but what you've defined doesn't match with what you've got.

EXAMPLE:

SendAudioToRange(audioid, volume, Float:x, Float:y, Float:z, Float:range)

In the brackets are the parameters, but the arguments you've put in don't match.

You need to wait 24 hours before bumping, not 7 minutes.
Reply
#6

Thanks, and ehh, Sorry about the bump :/
Reply
#7

Worked, thank you guys very much <3
pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)