Different between a stock and a public?
#5

A stock is a function which can be used for repetitive operations (i.e. strtok, sscanf). Stocks can't be called, they don't have to be forwarded, they can return multiple values, they don't print warnings in the compiler if you don't use them, they're only included in the compiled .amx if you do use them.

As they can't be called by timers, etc. their best use is for returning values of any sort... and if you want a used-to-hell example of a stock, just look at strtok (for commands).
Reply


Messages In This Thread
Different between a stock and a public? - by KaleOtter - 28.08.2010, 15:20
Re: Different between a stock and a public? - by [XST]O_x - 28.08.2010, 15:22
Re: Different between a stock and a public? - by !Pumpkin - 28.08.2010, 15:49
Re: Different between a stock and a public? - by vital2k - 28.08.2010, 15:52
Re: Different between a stock and a public? - by General Abe - 28.08.2010, 15:59
Re: Different between a stock and a public? - by Daren_Jacobson - 28.08.2010, 16:00
Re: Different between a stock and a public? - by KaleOtter - 28.08.2010, 16:06
Re: Different between a stock and a public? - by Faith - 28.08.2010, 16:13
Re: Different between a stock and a public? - by KaleOtter - 28.08.2010, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)