09.08.2015, 21:12
easy error
10.08.2015, 00:08
put this in your script.
pawn Код:
/**
* Copies a textfile (Source file won't be deleted!)
* @param oldname
* newname
*/
stock fcopytextfile(oldname[],newname[]) {
new File:ohnd,File:nhnd;
if (!fexist(oldname)) return false;
ohnd=fopen(oldname,io_read);
nhnd=fopen(newname,io_write);
new tmpres[MAX_STRING];
while (fread(ohnd,tmpres)) {
StripNewLine(tmpres);
format(tmpres,sizeof(tmpres),"%s\r\n",tmpres);
fwrite(nhnd,tmpres);
}
fclose(ohnd);
fclose(nhnd);
return true;
}
10.08.2015, 00:10
Then correct it if it is easy .....
10.08.2015, 01:03
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)