View Single Post
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-29-2009 , 06:49   Re: Programming for starters
Reply With Quote #24

Quote:
Originally Posted by --kml-- View Post
and can you put about public?

you have explained about new

but public can u explain it also
A function in your plugin can be called from inside your plugin or from an external source. As an example, plugin_init , plugin_precache ... are called from amxmodx when your plugin starts. Since they are called not from your plugin but from an external source they need to be public. The same happens for functions associated to console/server commands, for tasks, for menu handlers, and for functions in another plugins.
__________________
joaquimandrade is offline