error 035: argument type mismatch (argument 2)
#3

Now I get this error?
Quote:

stock RemoveTextFromFile(filename[], line[]){
new count, string[256], File:file, File:temp;

file= fopen(filename, io_read);
temp = fopen("tmpfile.tmp", io_write);
while (fread(file, string))
if (++count != line)
fwrite(temp, string);
fclose(file);
fclose(temp);
file= fopen(filename, io_write);
temp = fopen("tmpfile.tmp", io_read);
while (fread(temp, string))
fwrite(file, string);
fclose(file);
fclose(temp);
fremove("tmpfile.tmp");
return true;
}

I get error on this line
Quote:

if (++count != line)

It says the array must be indexed ?
Reply


Messages In This Thread
error 035: argument type mismatch (argument 2) - by hhaaoo123 - 09.06.2015, 13:48
Re: error 035: argument type mismatch (argument 2) - by X337 - 09.06.2015, 14:22
Re: error 035: argument type mismatch (argument 2) - by hhaaoo123 - 09.06.2015, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)