Help with Dutils
#3

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
It means ret_memcpy is already defined in your script, remove it either from the script or from the inc
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;
}
No, a "Symbol is never used" error, means it is never used...

pawn Код:
#pragma unused ret_memcpy
//At the top of your script
Reply


Messages In This Thread
Help with Dutils - by iCurse - 12.01.2015, 14:57
Re: Help with Dutils - by Ironboy - 12.01.2015, 15:02
Re: Help with Dutils - by Threshold - 12.01.2015, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)