18.07.2017, 16:55
Firstly, adding the keyword stock to a function does not make it a stock like most people refer it to as. It can be called a stock function, but that does not eliminate the fact that it's still simply a function. The keyword can also be used with variables for example; however, I'll use functions as a sample in the following:
1. The only difference is that the stock function will lack (won't be added) from the .amx file if the function is never used.
2. Public functions are basically callbacks (if you want to see it that way). The major difference between a public function and a stock function is that public functions can be called using CallLocal/RemoteFunction, setting timers, or in other words, while in run time. Stock functions can't.
1. The only difference is that the stock function will lack (won't be added) from the .amx file if the function is never used.
2. Public functions are basically callbacks (if you want to see it that way). The major difference between a public function and a stock function is that public functions can be called using CallLocal/RemoteFunction, setting timers, or in other words, while in run time. Stock functions can't.