Couple of Errors
#1

Hey guys, I got a Script today and it won't compile because of some errors.

This is the script:
Код:
public LoadIRC()
{
	new arrCoords[5][64];
	new strFromFile2[256];
	new File: file = fopen("channels.cfg", io_read);
	if (file)
	{
		new idx;
		while (idx < )sizeof(IRCInfo)); // This is 7896
		{
			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] = strval(arrCoords[3]);
			IRCInfo[idx][iLock] = strval(arrCoords[4]);
			printf("IRC:%d Admin:%s MOTD: %s Passwort: %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;
}
And these are the errors/warnings:
selfmade.pwn(7896) : error 029: invalid expression, assumed zero
selfmade.pwn(7896) : warning 215: expression has no effect
selfmade.pwn(7896) : error 001: expected token: ";", but found ")"
selfmade.pwn(7896) : error 029: invalid expression, assumed zero
selfmade.pwn(7896) : fatal error 107: too many error messages on one line

I'm pretty confused now.
Thanks in advance!
Reply


Messages In This Thread
Couple of Errors - by sapsap - 06.03.2011, 10:52
Re: Couple of Errors - by rjjj - 06.03.2011, 10:59
Re: Couple of Errors - by sapsap - 06.03.2011, 11:01
Re: Couple of Errors - by rjjj - 06.03.2011, 11:07
Re: Couple of Errors - by sapsap - 06.03.2011, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)