Help with Dutils - 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: Help with Dutils (
/showthread.php?tid=557030)
Help with Dutils -
iCurse - 12.01.2015
I'm always getting an error when i'm including Dutils on my script
Ex.
Then when i try to compile it, it says
Код:
C:\Users\Hadjinoor-PC\Desktop\SAMP DM Server\gamemodes\DM.pwn(230) : warning 203: symbol is never used: "ret_memcpy"
Re: Help with Dutils -
Ironboy - 12.01.2015
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;
}
Re: Help with Dutils -
Threshold - 12.01.2015
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