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

Quote:
Originally Posted by nightscreem
nice tut but so there is no diffrents with
Code:
fnDoFunc()

or Code:
stock fnDoFunc()
I can't confirm any of what I say below here, but based on my experience it is as follows:

Not quite, I should clarify that the stock is public but the private function is not.

If you use the stock outside and inside of the plugin, then make it public (ex. if you use it in set_task or query_client_cvar)

However, if you just use it inside the plugin, you should always avoid using public or stock and instead just make it a private function.

EDIT: What I said here is wrong, stocks are private.
__________________

Last edited by Hawk552; 06-26-2006 at 14:15.
Hawk552 is offline
Send a message via AIM to Hawk552