SA-MP Forums Archive
I just need a tiny bit of help :D - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I just need a tiny bit of help :D (/showthread.php?tid=122112)



I just need a tiny bit of help :D - Lorenc_ - 20.01.2010

Hello guys! I've added these inculdes to my blank script.

pawn Код:
#include <a_samp>
#include <dini>
#include <dutils>
and I got this warning that I'm concerned with.

pawn Код:
LorencAdmin.pwn(164) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Does anyone know about these warnings...
I really don't like warning in my filter scripts...

Thanks,
Lorenc


Re: I just need a tiny bit of help :D - 02manchestera - 20.01.2010

i think it means it is not need but dont hold me to do that wait for a better scripter

ret_memcpy' this is in the script but not being used at all.


Re: I just need a tiny bit of help :D - saiberfun - 20.01.2010

well its just an unused variable which u could delete but do not need to
as i don't kno ur script i can't tell if u need it^^


Re: I just need a tiny bit of help :D - Lorenc_ - 20.01.2010

Don't worrie guys. I'll try fix it.. I might learn something on process


Re: I just need a tiny bit of help :D - 02manchestera - 20.01.2010

omg i got it right, only because i had the same thing about a hour ago, just try finding that in you script delet it and recompille it and test it out.

edit make a backup 1st thu just incase lol


Re: I just need a tiny bit of help :D - LuxurioN™ - 20.01.2010

pawn Код:
new ret_memcpy;
or:

pawn Код:
#pragma unused ret_memcpy
Because 'ret_memcpy' is a Function, not a Variable!


Re: I just need a tiny bit of help :D - Nakash - 20.01.2010

That warning means you have an unused variable,let me show you an example:
pawn Код:
new something;
^^
That means you created an empty unsuted variable,
you can use it by changing it's value or showing it.

pawn Код:
something = 123;
^^
You changed it's value (It won't give you a "unused" warning.).

If it happens in filterscript,that means that the variable is not really needed or has been removed,if it was,
it would not give you a warning.