AlliedModders

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

PurposeLessx 06-22-2018 08:30

Include xs
 
Hey friends, I see lots of plugins. Authors use "#include <xs>"
but I searched, there have just some stocks in xs include. Not natives or anything.

Is it optimized to use include xs instead of using stock in plugin?
Which type is the most optimized?

Spoiler

klippy 06-22-2018 08:40

Re: Include xs
 
It's exactly the same whether you include it or copy the code in your plugin. So, logically, you should always just include xs.

maqi 06-22-2018 08:42

Re: Include xs
 
It's the exact same thing. If you want to define the stocks everytime you want to use em then go for it.

PurposeLessx 06-22-2018 10:15

Re: Include xs
 
Isn't bad thing to use stock in plugin? A friend said to me that and I stopped using stock :(

shauli 06-22-2018 10:26

Re: Include xs
 
Quote:

Originally Posted by PurposeLessx (Post 2598676)
Isn't bad thing to use stock in plugin? A friend said to me that and I stopped using stock :(

That's not a bad "thing", maybe just a bad habit. If you're 100% sure you're going to use the function in your plugin then it shouldn't be a stock, and if you're not going to use it - it shouldn't be there at all.


All times are GMT -4. The time now is 12:13.

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