Raised This Month: $ Target: $400
 0% 

Questions about functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-11-2017 , 06:42   Re: Questions about functions
Reply With Quote #2

1) Unless the function is callback or forward, you don't need "public". You use it when you need the function be accessed from outside your plugin scope.

2) Not sure to understand. In a custom function, you return whatever you want.

3) "@function() {}" is the same as "public function() {}". It can be handy if you do some macro with it but usually, I like you use it to differentiate callback from forward (just a visual hint).
__________________
Arkshine is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode