09.06.2015, 14:33
Now I get this error?
I get error on this line
It says the array must be indexed ?
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; } |
Quote:
if (++count != line) |