Raised This Month: $12 Target: $400
 3% 

...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cristian505
Senior Member
Join Date: Oct 2020
Old 10-20-2021 , 10:09   ...
Reply With Quote #1

...

Last edited by Cristian505; 08-10-2022 at 14:24.
Cristian505 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-20-2021 , 10:22   Re: Stock vs. Private vs. Public
Reply With Quote #2

This is not a question of what is better. Every one of them is used in a specific scenario.

I explained what "stock" is a few days ago in your other topic and the others were explained in this forum countless times. Search.
__________________
HamletEagle is online now
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-20-2021 , 22:38   Re: Stock vs. Private vs. Public
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=10775
__________________
My plugin:
Celena Luna is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-22-2021 , 00:27   Re: Stock vs. Private vs. Public
Reply With Quote #4

In short, you should only use stock in include files. Use public when the function needs to be used by AMX-X in a callback, set_task(), etc. If the function is used only locally, directly by code in your plugin, public is not needed. When in doubt, use public.
__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

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 11:48.


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