error 017: undefined symbol "equal" ... and how define it ?
#1

Hi Guys ^^

Code:
public fdeleteline(filename[], line[]){
	if(fexist(filename)){
		new temp[256];
		new File:fhandle = fopen(filename,io_read);
		fread(fhandle,temp,sizeof(temp),false);
		if(strfind(temp,line,true)==-1){return 0;}
		else{
			fclose(fhandle);
			fremove(filename);
			for(new i=0;i<strlen(temp);i++){
				new templine[256];
				strmid(templine,temp,i,i+strlen(line));
				if(equal(templine,line,true)){
					strdel(temp,i,i+strlen(line));
					fcreate(filename);
					fhandle = fopen(filename,io_write);
					fwrite(fhandle,temp);
					fclose(fhandle);
					return 1;
				}
			}
		}
	}
	return 0;
}
when I want to Compile it show this message :

error 017: undefined symbol "equal"

...but how to define it ?

MFG Bearfist
Reply


Messages In This Thread
error 017: undefined symbol "equal" ... and how define it ? - by Bearfist - 20.04.2009, 22:41
Re: error 017: undefined symbol "equal" ... and how define it ? - by tom_jonez - 20.04.2009, 22:52
Re: error 017: undefined symbol "equal" ... and how define it ? - by yom - 20.04.2009, 22:57
Re: error 017: undefined symbol "equal" ... and how define it ? - by Bearfist - 20.04.2009, 22:59
Re: error 017: undefined symbol "equal" ... and how define it ? - by Bearfist - 21.04.2009, 14:35

Forum Jump:


Users browsing this thread: 2 Guest(s)