Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
1 Attachment(s)
Was wondering if your php script at: http://www.sourcemodplugins.org/smlibfunctions.php
Could be used to make it easier to read other include files like the one attached? |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
This was just a quick & dirty thing.
I have written a much more powerful Pawn Parser that I maybe will release together with the dynamic API documention, don't know yet :3 |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Ah, cool. Yea I have been trying to find a better way to see the list of natives and descriptions for that mod so that I and others can have an easier time writing programs for it.
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Handles to convars don't need to be closed, as you're not making a new one when you find a convar.
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
Citation: http://hg.alliedmods.net/sourcemod-c...nager.cpp#l451 |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
If I get everything done I have in my head, I will make a bigger release today, including extensive chat color support. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
Quote:
SM calls FindVar to first make sure the convar exists before looking to see if it already has a handle to it. FindVar iterates through all cvars and commands, doing string compares. This is why it is slow even if SM already has a handle to it, and thus, why you should still cache the handle. |
| All times are GMT -4. The time now is 21:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.