Invalid function or declaration?
#3

Thanks for the quick response, though I get warnings and I still get the invalid function or declaration.

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;
}
Reply


Messages In This Thread
Invalid function or declaration? - by Ferrari123 - 07.03.2011, 15:49
Re: Invalid function or declaration? - by GaGlets(R) - 07.03.2011, 15:52
Re: Invalid function or declaration? - by Ferrari123 - 07.03.2011, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)