Difference between
#1

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
Reply
#2

native - includes
stock - function like IsInACar
public - function with timer
Reply
#3

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)
Reply
#4

Quote:
Originally Posted by Joe Staff
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)
Would it make it i made something that could be stock into a public does it make a diffrence ?
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)