Warning: local variable not used
Moderator: POL Developer
Warning: local variable not used
I am getting this error pertaining to .src and .inc files. Any suggestions what I should be looking for?
Re: Warning: local variable not used
You defined variable inside program or function which is not used.
Re: Warning: local variable not used
so do I just delete that out?
If useScissors.src is saying "Warning: local variable 'tool' not used. I could just delete out 'tool' and pray that it is ok?
If useScissors.src is saying "Warning: local variable 'tool' not used. I could just delete out 'tool' and pray that it is ok?
Re: Warning: local variable not used
Try and compile, if script compiles then all is legit.
Re: Warning: local variable not used
sounds like your code is something like program scissors( who, tool ) and in that case if you remove that tool it wont work because an item use script need 2 parameters
If thats the case just add somewhere in your code tool := tool; and the warning is gone, or let it be if you dont care because it does not stop anything from working, its just reporting that you have a variable hanging there never used
If thats the case just add somewhere in your code tool := tool; and the warning is gone, or let it be if you dont care because it does not stop anything from working, its just reporting that you have a variable hanging there never used