errors.. irc command
#1

Код:
irccmd_ban(conn, channel[], user[], params[]) // supports banning by partial nickname
{
	if (!ircIsOp(conn,channel,user)) return false;
	printinfo
	new strname[25];
	new strmessage[150];
	for (new a=0; a<=MAX_PLAYERS; a++)
	{
	  if (IsPlayerConnected(a))
	  {
			GetPlayerName(a,strname,16);
			new space = (strfind(params, strname));
			if (space != -1)
			{

				format(strmessage, sizeof(strmessage), "**(ADMIN BAN)** \2;%s(%d)\2;", strname,a);
				SendClientMessageToAll(0xFF7F50AA, strmessage);
				ircSay(conn,channel,strmessage);
  			if(udb_Exists(PlayerName(a)) && PLAYERLIST_authed[a]) {
				dUserSetINT(PlayerName(a)).("nameban",1);
				}
				Banning[a] = 1;
     		SetTimer("BanPlayer",700,0);
				return true;
			}
		}
 	}
 	format(strmessage, sizeof(strmessage), "2*** \2;%s\2; is not found on the server.", params);
 	ircSay(conn,channel,strmessage);
	return true;
}
Quote:

C:\DOCUME~1\ANNIKA~1.DIT\SKRIVB~1\Pawno\pawno\LVCR R-~1.PWN(2912) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\DOCUME~1\ANNIKA~1.DIT\SKRIVB~1\Pawno\pawno\LVCR R-~1.PWN(2925) : error 012: invalid function call, not a valid address
C:\DOCUME~1\ANNIKA~1.DIT\SKRIVB~1\Pawno\pawno\LVCR R-~1.PWN(2925) : warning 215: expression has no effect
C:\DOCUME~1\ANNIKA~1.DIT\SKRIVB~1\Pawno\pawno\LVCR R-~1.PWN(2925) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\ANNIKA~1.DIT\SKRIVB~1\Pawno\pawno\LVCR R-~1.PWN(2925) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ANNIKA~1.DIT\SKRIVB~1\Pawno\pawno\LVCR R-~1.PWN(2925) : fatal error 107: too many error messages on one line

Reply


Messages In This Thread
errors.. irc command - by MarkusJuntunen - 20.04.2009, 14:36
Re: errors.. irc command - by miokie - 20.04.2009, 14:39
Re: errors.. irc command - by MarkusJuntunen - 20.04.2009, 14:42
Re: errors.. irc command - by Geekzor - 20.04.2009, 18:13
Re: errors.. irc command - by Geekzor - 20.04.2009, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)