error 017: undefined symbol "equal" ... and how define it ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 017: undefined symbol "equal" ... and how define it ? (
/showthread.php?tid=74245)
error 017: undefined symbol "equal" ... and how define it ? -
Bearfist - 20.04.2009
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
Re: error 017: undefined symbol "equal" ... and how define it ? -
tom_jonez - 20.04.2009
Code:
if(equal(templine,line,true))
what are u trying to say on this line?
Re: error 017: undefined symbol "equal" ... and how define it ? -
yom - 20.04.2009
Use strcmp instead.
Re: error 017: undefined symbol "equal" ... and how define it ? -
Bearfist - 20.04.2009
I Don't know exact...
I ******d for it because of Turtorial of Saving Playerstats usw ^^
....why should I use strcmp ?
Re: error 017: undefined symbol "equal" ... and how define it ? -
Bearfist - 21.04.2009
Alright I got it...
Iam thinking to complicated xD
Thanks guys ..and also I have to say ---->>> Best Forum!
MFG Bearfist