Raised This Month: $ Target: $400
 0% 

Questions about functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 03-11-2017 , 06:07   Questions about functions
Reply With Quote #1

1) I'm always a robot when it come to function registering.
I always set them with public tag when needed and avoid to use it when not needed.
But what do public tag exactly ?

2) Question about usage of a custom function with inside a return PLUGIN_* value in forward or event hook. Does the function trigger the same return in the forward/event hook. Same question if the function is marked as public.

3) I saw recent usage of an @ instead of using public.
IE :
register_clcmd("test", "@cmd_test")
@cmd_test(id)

I have no idea of when to use this.
Fr33m@n 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