SendClientMessageToAll always sends double message
#2

I got another question
So i added this under public IRC_OnConnect , to make it send login message to NickServ, but i got a weird error.
Код:
public IRC_OnConnect(botid, ip[], port)
{
	printf("*** IRC_OnConnect: Bot ID %d connected to %s:%d", botid, ip, port);
	// Join the channel
	IRC_JoinChannel(botid, IRC_CHANNEL);
	// Add the bot to the group
	IRC_AddToGroup(groupID, botid);
	
	new str[60] //This is the start of the code i added
	format(str, 60, "nickserv identify SECRETPASS"); //This is line 188 (Where the error occurs)
	IRC_SendRaw(botid, str);
	return 1;
}
and this is the error message
Код:
E:\Samp Server\SAMP SERVER\filterscripts\irc.pwn(188) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Where they expect the ";" ??
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)