SA-MP Forums Archive
IRCCMD wrong? - 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: IRCCMD wrong? (/showthread.php?tid=190937)



IRCCMD wrong? - Face9000 - 17.11.2010

Hey,i've created a small irc command for echo bots for reading all blacklisted people.

Код:
IRCCMD:pblacklisted(botid, channel[], user[], host[])
(
    if(!IRC_IsOp(IRC_EchoConnection[0], EchoChan, user)) return AccessDenied(user);
    new pbl[64]; // Create the string to store the read text in
    new File:connections = fopen("/LogS/connections.txt", io_read); // Open the file
    fread(connections, pbl); // Fread from the file and store what's read in 'string'
    fclose(connections); // Close the file
    format(msg,95,"5>> List of blacklisted people: %s",pbl); // Print what was read
    IRC_GroupSay(IRC_Group,EchoChan,msg);
	return 1;
}
But i can't compile,when i try,pawnocompiler.exe crash,so i think there is an error to the code.

Any help?


Re: IRCCMD wrong? - Face9000 - 18.11.2010

BUMP lol


Re: IRCCMD wrong? - Mean - 18.11.2010

Idk, try using ZCMD


Re: IRCCMD wrong? - thiaZ_ - 18.11.2010

Quote:
Originally Posted by Mean
Посмотреть сообщение
Idk, try using ZCMD


1. Why are you even replying without trying to solve the problem?
2. IRCCMD uses ZCMD


Re: IRCCMD wrong? - selten98 - 18.11.2010

If pawn compiler crashes isn't that a bracket error....


Re: IRCCMD wrong? - Calgon - 18.11.2010

pawn Код:
IRCCMD:pblacklisted(botid, channel[], user[], host[])
{ // <<<<<<<<<< That was ) not {
    if(!IRC_IsOp(IRC_EchoConnection[0], EchoChan, user)) return AccessDenied(user);
    new pbl[64]; // Create the string to store the read text in
    new File:connections = fopen("/LogS/connections.txt", io_read); // Open the file
    fread(connections, pbl); // Fread from the file and store what's read in 'string'
    fclose(connections); // Close the file
    format(msg,95,"5>> List of blacklisted people: %s",pbl); // Print what was read
    IRC_GroupSay(IRC_Group,EchoChan,msg);
    return 1;
}



Re: IRCCMD wrong? - Face9000 - 18.11.2010

Quote:
Originally Posted by thiaZ_
Посмотреть сообщение


1. Why are you even replying without trying to solve the problem?
2. IRCCMD uses ZCMD
HAHAHAHAAH XD

You made me roflmaoing !

Calgo,ty for help,but i got this:

Код:
C:\Documents and Settings\k\Desktop\COD5.pwn(12264) : error 017: undefined symbol "msg"
C:\Documents and Settings\k\Desktop\COD5.pwn(12265) : error 017: undefined symbol "msg"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.