27.03.2015, 06:47
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.
and this is the error message
Where they expect the ";" ??
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; }
Код:
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.