easy error
#1

(23402) : error 017: undefined symbol "fcopytextfile"
http://prntscr.com/82qwvg

tnx
Reply
#2

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;
}
Reply
#3

Then correct it if it is easy .....
Reply
#4

Quote:
Originally Posted by Maximun
Посмотреть сообщение
Then correct it if it is easy .....
Turn down for what...

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)