Posts: 312
Threads: 50
Joined: Jul 2010
Reputation:
0
What is the difference between theese three functions? I'm confused.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
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.
Posts: 6,129
Threads: 36
Joined: Jan 2009
16.03.2011, 17:45
(
Последний раз редактировалось Calgon; 16.03.2011 в 18:16.
)
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.