07.03.2011, 16:04
Thanks for the quick response, though I get warnings and I still get the invalid function or declaration.
The first error is this
The first error is this
Код:
(15269) : warning 219: local variable "idx" shadows a variable at a preceding level
Код:
public LoadIRC()
{
new arrCoords[5][64];
new strFromFile2[256];
new File: file = fopen("channels.cfg", io_read);
if(file)
{
//15269 new idx;
while (idx < sizeof(IRCInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
strmid(IRCInfo[idx][iAdmin], arrCoords[0], 0, strlen(arrCoords[0]), 255);
strmid(IRCInfo[idx][iMOTD], arrCoords[1], 0, strlen(arrCoords[1]), 255);
strmid(IRCInfo[idx][iPassword], arrCoords[2], 0, strlen(arrCoords[2]), 255);
IRCInfo[idx][iNeedPass] = strvalEx(arrCoords[3]);
IRCInfo[idx][iLock] = strvalEx(arrCoords[4]);
// printf("IRC:%d Admin:%s MOTD:%s Password:%s NeedPass:%d Lock:%d",idx,IRCInfo[idx][iAdmin],IRCInfo[idx][iMOTD],IRCInfo[idx][iPassword],IRCInfo[idx][iNeedPass],IRCInfo[idx][iLock]);
idx++;
}
fclose(file);
}
return 1;
}

