Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
What is the difference between
native & stock & public,
Like ive seen stuff like IsInACar used sometimes with stock and sometimes with public,
And ive seen alot of stuff in native and sometimes stock
Posts: 2,593
Threads: 34
Joined: Dec 2007
native - includes
stock - function like IsInACar
public - function with timer
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
Natives tell Pawno that the function that it's associated with is understood, meaning that it will run the function even though there's nothing for the compiler to see.
Publics are call backs that are called once an event happens. (Player gets out of car, Player dies, a Timer ends, etc.)
Off the top of my head, Stocks are optionally used and repeated functions.
If you create a function without 'Stock' or 'Public' it will run just like 'Stock' except that it reacts more like a variable in the compiler (as in it wants you to use it)
Posts: 25
Threads: 10
Joined: Jan 2008
Reputation:
0
i mean:
stock - local function
public - u can use it in other script with CallRemoteFunction
private - local function
native - not need create the function its will get at run