I just need a tiny bit of help :D
#1

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
Reply
#2

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.
Reply
#3

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^^
Reply
#4

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

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
Reply
#6

pawn Код:
new ret_memcpy;
or:

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)