ret_memcpy help! - 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: ret_memcpy help! (
/showthread.php?tid=559636)
ret_memcpy help! -
Barnwell - 24.01.2015
plesae help me with this ret_memcpy!
Код:
error 017: undefined symbol "ret_memcpy
Re: ret_memcpy help! -
UploaD - 24.01.2015
Hello sir , at the top add
pawn Код:
#pragma unused ret_memcpy
Re: ret_memcpy help! -
Barnwell - 24.01.2015
i already add it
Re: ret_memcpy help! -
UploaD - 24.01.2015
so there are new errors? are you using DINI?
Re: ret_memcpy help! -
Dignity - 24.01.2015
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/