please help
#1

Код:
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(202) : error 020: invalid symbol name ""
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(209) : error 010: invalid function or declaration
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(216) : error 010: invalid function or declaration
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(256) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(262) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(287) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(293) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(326) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(332) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(361) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(367) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(384) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(390) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(403) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(409) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(431) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(437) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(450) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(456) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(476) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(482) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(658) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1024) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1038) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1051) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1121) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1167) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1222) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1269) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1397) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1418) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1495) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1518) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1536) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1544) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1565) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1611) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(1623) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(2247) : warning 219: local variable "msg" shadows a variable at a preceding level
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(2645) : warning 203: symbol is never used: ""
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(2645) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
and here is the code

Код:
new msg[512];
    if(botid == IRC_EchoConnection[0])
    {
        print("[IRC] Socket 1 established");
    	format(msg,sizeof(msg), "Privmsg Nickserv identify %s",BotPass);
		IRC_SendRaw(IRC_EchoConnection[0], msg);
		IRC_JoinChannel(IRC_EchoConnection[0], EchoChan);
	}
	else if(botid == IRC_EchoConnection[1])
	{
	    print("[IRC] Socket 2 established");
	    format(msg,sizeof(msg), "Privmsg Nickserv identify %s",BotPass);
		IRC_SendRaw(IRC_EchoConnection[1], msg);
		IRC_JoinChannel(IRC_EchoConnection[1], EchoChan);
	}
	return 1;
}
Reply
#2

Delete the new msg[512];
Reply
#3

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Delete the new msg[512];
Код:
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(201) : error 010: invalid function or declaration
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(208) : error 010: invalid function or declaration
C:\Users\MR. TOM LEE FOX\Desktop\samp03dsvr_R2_win32\filterscripts\IAdministrator.pwn(215) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#4

Post lines 200 to 217 and marked them
pawn Код:
blabla..
blavla // <- 1st error
...
dasda // 2nd error
sasas
// Rest
Reply
#5

You also have a global variable called msg, rename the one inside the IRC function, or delete the declaration as Dwane said, if you don't need it.
Reply
#6

Quote:
Originally Posted by Nonameman
Посмотреть сообщение
You also have a global variable called msg, rename the one inside the IRC function, or delete the declaration as Dwane said, if you don't need it.
i did and code
Код:
if(botid == IRC_EchoConnection[0])

else if(botid == IRC_EchoConnection[1])

return 1;
Reply
#7

I mean:

pawn Код:
new msg2[512];
    if(botid == IRC_EchoConnection[0])
    {
        print("[IRC] Socket 1 established");
        format(msg2,sizeof(msg2), "Privmsg2 Nickserv identify %s",BotPass);
        IRC_SendRaw(IRC_EchoConnection[0], msg2);
        IRC_JoinChannel(IRC_EchoConnection[0], EchoChan);
    }
    else if(botid == IRC_EchoConnection[1])
    {
        print("[IRC] Socket 2 established");
        format(msg2,sizeof(msg2), "Privmsg2 Nickserv identify %s",BotPass);
        IRC_SendRaw(IRC_EchoConnection[1], msg2);
        IRC_JoinChannel(IRC_EchoConnection[1], EchoChan);
    }
    return 1;
}
just change the name of the variable at the places you want to use it.
Reply
#8

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

pawn Код:
new msg2[512];
    if(botid == IRC_EchoConnection[0])
    {
        print("[IRC] Socket 1 established");
        format(msg2,sizeof(msg2), "Privmsg2 Nickserv identify %s",BotPass);
        IRC_SendRaw(IRC_EchoConnection[0], msg2);
        IRC_JoinChannel(IRC_EchoConnection[0], EchoChan);
    }
    else if(botid == IRC_EchoConnection[1])
    {
        print("[IRC] Socket 2 established");
        format(msg2,sizeof(msg2), "Privmsg2 Nickserv identify %s",BotPass);
        IRC_SendRaw(IRC_EchoConnection[1], msg2);
        IRC_JoinChannel(IRC_EchoConnection[1], EchoChan);
    }
    return 1;
}
just change the name of the variable at the places you want to use it.
you just lost me
Reply
#9

My fault, sorry, I just saw that you've already done this. Can I see your code? Maybe I can fix it if I can compile between the changes. Put the while script into pastebin.
Reply
#10

Quote:
Originally Posted by Nonameman
Посмотреть сообщение
My fault, sorry, I just saw that you've already done this. Can I see your code? Maybe I can fix it if I can compile between the changes. Put the while script into pastebin.
http://pastebin.com/QJqCgesw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)