forward vs. stock vs. native
#1

What is the difference between theese three functions? I'm confused.
Reply
#2

forward is not a function type, but you use it to register the function headers of other functions, so the compiler knows the function exists before he reached it in the code.

stock functions will only be included in the amx file if it is needed, that means, if it is used somewhere in your code. Else it wont use any ressources.

natives are functions provided by samp or plugins, or in general: functions, that are not scripted in pawn, but they come from another program/library.
Reply
#3

Just to add on to Mauzen's post: forwards are also used for public functions. You can find an explanation of what public functions do here.
Reply
#4

They are also used for normal functions/ stocks with tagged result
But youre right, you need forwards mostly for publics
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)