[Tool/Web/Other] Stock/Public IsUsed Checker. - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] Stock/Public IsUsed Checker. (
/showthread.php?tid=556311)
Stock/Public IsUsed Checker. -
Ahmad45123 - 10.01.2015
IsUsed Checker
This basically just scans the script for any unused stocks or publics.
I made it as I downloaded a script from internet and I noticed that it contained alot if unused stocks.
So I developed this app.
I don't know if its really usefull or not, But it may help someone
DOWNLOAD
Download:
http://www.mediafire.com/download/oc...ed_Checker.zip
Source:
http://www.mediafire.com/download/6u...sedChecker.rar
Re: Stock/Public IsUsed Checker. -
Daewoo - 10.01.2015
Nice !
Re: Stock/Public IsUsed Checker. -
Abagail - 10.01.2015
Whats wrong with having un-used stocks? They don't give any unused warnings if they're not used.
Re: Stock/Public IsUsed Checker. -
codectile - 10.01.2015
@Y_Less: I agree with you, but "stock" functions coded for no use is quite bad for scripting(in my opinion), as it will use up the memory for nothing. It's better to check for unused stock functions.
Re: Stock/Public IsUsed Checker. -
Crayder - 10.01.2015
Lol, this was like a huge duh...
Re: Stock/Public IsUsed Checker. -
Ahmad45123 - 10.01.2015
Quote:
Originally Posted by Y_Less
The point of a "stock" is to tell the compiler that it may never be used. If you want them to always be used, don't make them "stock"! The compiler already generates warnings for unused functions, you have just written a tool to generate those warnings again for functions that have explicitly disabled the warning - basically just wasted your time!
|
I know that a stock may be used or not...
But I developed this not for memory or any of that... But just to 'clean' the script.
Re : Stock/Public IsUsed Checker. -
Chipardeur - 10.01.2015
If u can make a tool which can check all forward and say if one is not used, i think that would be more efficient.