Freakin' Warnings
#1

Quote:

C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(368 : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(3751) : warning 203: symbol is never used: "seek"
C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(3782) : warning 203: symbol is never used: "seek"
C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(383 : warning 211: possibly unintended assignment
C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(38190) : warning 204: symbol is assigned a value that is never used: "rand"
C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(46522) : warning 211: possibly unintended assignment
C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(93140) : warning 203: symbol is never used: "IsAtNameChange"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


7 Warnings.

And yes i puted plugins,includes and audio and yes i'm sure!!! And dont say they are just warnings cuz they effect my server ;(


PLEASE HELP!
Reply
#2

Post the code and i'll fix it -_-.
Reply
#3

Okey :S I'll

This is 1st warning: 3688
Code:
public Audio_OnSetPack(audiopack[])
{
	foreach(Player, i)
	{
		Audio_TransferPack(i);
	}
	return 1;
}

This is second warning;3751
Code:
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_SetPosition(i, localhandle, seek);
					audiohandle[i][audiohandleglobal] = localhandle;
				}
			}
		}
	}
	return audiohandleglobal;
}
This is 3rd warning;3782

Code:
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_SetPosition(i, localhandle, seek);
					audiohandle[i][audiohandleglobal] = localhandle;
				}
			}
		}
	}
	return audiohandleglobal;
}
This is 4th only one line:

Code:
		if(PlayerInfo[playerid][pCarLic] = 0) return SendClientMessageEx(playerid, COLOR_RED, "You're driving without a drivers license. Obtain one from City Hall!");

5th.... [code new rand = random(2);[/code]


6th warning....
Code:
	if(PlayerInfo[playerid][pModel] = 299) {
and FINALLY LAST ONE AT THE LAST LINE;
Code:
}
EPIC FAIL

EDIT; Idk How to change so there will be space:S

EDIT; Epic Fail Beofre i did [qute] instend of code anyways HELP HELP (panic) xD
Reply
#4

well its kinda obvious when it says never used seek
Reply
#5

Quote:
Originally Posted by basse
View Post
well its kinda obvious when it says never used seek
Still dont get you
Reply
#6

;( please help me my hosted server is going to hell :/
Reply
#7

Anyone ;(?
Reply
#8

Have you read the wiki and the pawn_language documentation at all?

The errors are obvious, it tells you are using a function without declaring it, use forward. All those warnings about symbols that are never used or assigned but not used are not a big deal (they won't affect your server) however it's good practice to delete variables you don't use. Also take a look here https://sampwiki.blast.hk/wiki/Control_Structures to see what you're doing wrong (for the unintended assignment warning).
Reply
#9

Quote:
Originally Posted by playbox12
View Post
Have you read the wiki and the pawn_language documentation at all?

The errors are obvious, it tells you are using a function without declaring it, use forward. All those warnings about symbols that are never used or assigned but not used are not a big deal (they won't affect your server) however it's good practice to delete variables you don't use. Also take a look here https://sampwiki.blast.hk/wiki/Control_Structures to see what you're doing wrong (for the unintended assignment warning).
One big prob... i dont know how to script :S sometimes i just ****** errors-warnings and i fixed them but now it dont work :S
Reply
#10

Another big problem is you aren't even trying. It's easy to say you can't script without doing any effort. Take a look at the link I gave you, fixing those warnings is just normal English. It even tells you what to do.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)