SA-MP Forums Archive
errors.. irc command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: errors.. irc command (/showthread.php?tid=74182)



errors.. irc command - MarkusJuntunen - 20.04.2009

Код:
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




Re: errors.. irc command - miokie - 20.04.2009

What lines are the errors on?


Re: errors.. irc command - MarkusJuntunen - 20.04.2009

First line is 2912.
Код:
irccmd_ban(conn, channel[], user[], params[]) // supports banning by partial nickname



Re: errors.. irc command - Geekzor - 20.04.2009

anyone can help pelase ?ћ

C:\Documents and Settings\Administrator\Desktop\MojServer\gamemodes \lvrcr.pwn( : fatal error 100: cannot read from file: "a_irc"

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


1 Error.



Re: errors.. irc command - Geekzor - 20.04.2009

i wanan try lvrcr game mdoe and make me this error