What is the difference between public and stock - 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: What is the difference between public and stock (
/showthread.php?tid=195468)
What is the difference between public and stock -
ExEx - 02.12.2010
What is the difference between public and stock ?
Re: What is the difference between public and stock -
Grim_ - 02.12.2010
Nothing really, except that stocks cannot be passed through timers and are ignored by the compiler unless used.
Re: What is the difference between public and stock -
Patrik356b - 02.12.2010
public functions should return something, and they have to be forwarded
stock functions doesn't need that
Re: What is the difference between public and stock -
Vince - 02.12.2010
A function only needs to be public if the server itself should be able to call it. This includes all callbacks, and functions that are called by timers. The rest of the functions don't need to be public.
pawn Код:
MyFunction(msg[])
{
print(msg);
}
Will also work just fine.