Stock or Public? - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Stock or Public? (
/showthread.php?tid=164801)
Stock or Public? -
ScottCFR - 02.08.2010
Okay, I have wondered what the difference is in a stock function and a public function. I use both but I thought that stock used less resource due to not using forward. So, which uses less resource?
Thanks,
ScottCFR
Re: Stock or Public? -
Daren_Jacobson - 02.08.2010
stock is only compiled if you use it.
public is able to be called from other scripts, but must be forwarded, I never use this.
Re: Stock or Public? -
ScottCFR - 02.08.2010
I enjoy using stock for some reason, I am trying to save resource, something I've never considered.
Re: Stock or Public? -
Assyria - 02.08.2010
Do not use Stock or Public neither. Use Meow. Its simple as that.
Re: Stock or Public? -
Kar - 02.08.2010
wtf lol?
Re: Stock or Public? -
ScottCFR - 02.08.2010
rofl
pawn Код:
meow IsThisUseful(?)
{
return 1;
}
Re: Stock or Public? -
Kitten - 02.08.2010
no LOL hilarious