SA-MP Forums Archive
easy error - 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)
+--- Thread: easy error (/showthread.php?tid=584989)



easy error - noamch1997 - 09.08.2015

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

tnx


Re: easy error - jamesbond007 - 10.08.2015

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;
}



Re: easy error - Maximun - 10.08.2015

Then correct it if it is easy .....


Respuesta: Re: easy error - Dreyfuz - 10.08.2015

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