SA-MP Forums Archive
Having a small issue with my IRC script - 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: Having a small issue with my IRC script (/showthread.php?tid=86228)



Having a small issue with my IRC script - Leethan - 12.07.2009

Basically I compile with the following errors, it evolves around print info -.- which is neccasary and i'm stumped

C:\DOCUME~1\COMPAQ~1.YOU\LOCALS~1\Temp\Rar$DI00.95 3\irc.pwn(433) : error 029: invalid expression, assumed zero
C:\DOCUME~1\COMPAQ~1.YOU\LOCALS~1\Temp\Rar$DI00.95 3\irc.pwn(433) : error 035: argument type mismatch (argument 1)
C:\DOCUME~1\COMPAQ~1.YOU\LOCALS~1\Temp\Rar$DI00.95 3\irc.pwn(433) : error 020: invalid symbol name ""
C:\DOCUME~1\COMPAQ~1.YOU\LOCALS~1\Temp\Rar$DI00.95 3\irc.pwn(433) : fatal error 107: too many error messages on one line

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


4 Errors.

Код:
irccmd_say(conn, channel[], user[], params[])      
{
  if(!SWsay) return ircSay(EchoConnection2,channel,"4*** Error: Commands !say, !me, !pmsay, !apmchat disable");
 	if(!strlen(params)) return ircSay(EchoConnection2,channel,"3Usage:1 !say <Message>");
 	printinfo     //<<<<<<<<<<<<<<<<<<<<<<<< line 433      
 	new lolz1[256];
 	new lolz2[256];
 	if(IsPlayerOwner(conn,channel,user))
	{
		format(lolz1,256,"(Owner) %s on irc: %s",user,params);
		SendClientMessageToAll(orange, lolz1);
		format(lolz2,256,"7(Owner) %s on irc:1 %s",user,params);
		ircSay(RandomBot(),channel,lolz2);
		Debug(lolz1);
		return true;
	}



Re: Having a small issue with my IRC script - -Sneaky- - 12.07.2009

What does "printinfo" do? Do you even got a function called printinfo in your script? If not you can just remove it..