AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ... (https://forums.alliedmods.net/showthread.php?t=334798)

Cristian505 10-20-2021 10:09

...
 
...

HamletEagle 10-20-2021 10:22

Re: Stock vs. Private vs. Public
 
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.

Celena Luna 10-20-2021 22:38

Re: Stock vs. Private vs. Public
 
https://forums.alliedmods.net/showthread.php?t=10775

Bugsy 10-22-2021 00:27

Re: Stock vs. Private vs. Public
 
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.


All times are GMT -4. The time now is 02:58.

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