ret_memcpy help!
#1

plesae help me with this ret_memcpy!

Код:
error 017: undefined symbol "ret_memcpy
Reply
#2

Hello sir , at the top add

pawn Код:
#pragma unused ret_memcpy
Reply
#3

i already add it
Reply
#4

so there are new errors? are you using DINI?
Reply
#5

pawn Код:
ret_memcpy(source[],index=0,numbytes) {
    new tmp[MAX_STRING];
    new i=0;
    tmp[0]=0;
    if (index>=strlen(source)) return tmp;
    if (numbytes+index>=strlen(source)) numbytes=strlen(source)-index;
    if (numbytes<=0) return tmp;
    for (i=index;i<numbytes+index;i++) {
        tmp[i-index]=source[i];
        if (source[i]==0) return tmp;
    }
    tmp[numbytes]=0;
    return tmp;
}
It's used in the "dutils" include, which you can download here: http://dracoblue.net/downloads/dutils/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)