04.08.2014, 17:10
If you're planning on making a library, you should go for stock.
otherwise
"public" saves the name of the function in the amx (normally
functions are just called be address, the human-readable
name is not important). Saving the name means that the
function can be found by name later on. When you specify a
function in "SetTimer", "SetTimerEx", "CallLocalFunction" or
"CallRemoteFunction" you specify it by name so these can
only call public functions. Callbacks such as
"OnPlayerConnect" are also public for the same reason. - ******
otherwise
"public" saves the name of the function in the amx (normally
functions are just called be address, the human-readable
name is not important). Saving the name means that the
function can be found by name later on. When you specify a
function in "SetTimer", "SetTimerEx", "CallLocalFunction" or
"CallRemoteFunction" you specify it by name so these can
only call public functions. Callbacks such as
"OnPlayerConnect" are also public for the same reason. - ******