[HELP] how to fix all this warnings
#2

Код:
 warning 204: symbol is assigned a value that is never used: "level"
You have level argument inside the ABroadCast function but you didn't utilize it there. From what I guess it should be like

Код:
stock ABroadCast(color,string[],level)
{
	foreach(Player, i)
	{
		if(PlayerInfo[i][pAdmin] >= level)
		{
			SendClientMessage(i, color, string);
		}
	}
	return 1;
}
Код:
local variable "szRank" shadows a variable at a preceding level
You have 2 variables named szRank in your /f command. Rename one of the variable to something else.

Loose indentations means, your braces and function etc aren't aligned properly. For example;

Bad:
Код:
public test()
      {
      if(something)
            {
                   otherthing;
      }
}
Good:
Код:
public test()
{
     if(something)
     {
          otherthing;
     }
}
So, indent your code properly.
Reply


Messages In This Thread
[HELP] how to fix all this warnings - by OsvaldoS - 22.07.2016, 14:32
Re: [HELP] how to fix all this warnings - by Sjn - 22.07.2016, 14:40
Re: [HELP] how to fix all this warnings - by OsvaldoS - 22.07.2016, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)