View Single Post
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-26-2006 , 10:26   Re: The Use of Stocks
Reply With Quote #5

Quote:
Originally Posted by Greenberet
WRONG!!!!
stock variables are usefull!

When you create big plugins, you declare most of the global variables at the begin.
So you have many gobal variables but you aren't using all of them from begin.
So when you compile it, you will get many warnings( "warning 203: symbol is never used" )
But with stock variables you will not get this warning, because the variables will not be created
That's very arguable as I don't do that with large plugins I make (I make variables as I go along). I guess you could say that, but I disagree. If I need this functionality, I simply comment the declaration of the variable.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552