Public vars for plugin data (#714)
* Add public vars for plugin data and small refactoring get_xvar_id native * Add new command to display info about the plugin and add url to amxx plugins command * Add optional args to register_plugin native (url, description) * Add enum of args for register_plugin native * Creating a variable inside an if statement (C++17) * Displaying the URL of the plugin if it is present * Getting an ID only with more than three arguments * Creating a variable inside an if statement (C++17) * Fix typo * Revert "Creating a variable inside an if statement (C++17)" This reverts commit 835e0bc6c413f11b1bbf964daea87b57f653f5d7. * Revert "Creating a variable inside an if statement (C++17)" This reverts commit b2c1e7c77576c02a00c8c3f103457000d3298ceb. * Revert "Displaying the URL of the plugin if it is present" This reverts commit 9e31230368449966d16635c696d97c04adadeaa9. * Binary compatibility for previously compiled plugins * Displaying the URL of the plugin if it is present * Quotation marks replaced by square brackets and change arg name to id * Fix getting url * The 'atoi' function replaced to 'stoi' * Add likely/unlikely defines for using built-in function provided by GCC * Small fixes with auto and inconsistent var name * Replace stoi to strtol function * Removed explicit buffer id * Revert "Add likely/unlikely defines for using built-in function provided by GCC" This reverts commit 94cee479ed245b98195501466850d01a3f08fd13. * Add url and description params to get_plugin function
This commit is contained in:
@ -243,10 +243,12 @@ forward client_putinserver(id);
|
||||
* @param plugin_name Name of the plugin
|
||||
* @param version Version of the plugin
|
||||
* @param author Author of the plugin
|
||||
* @param url URL of the plugin
|
||||
* @param description Description of the plugin
|
||||
*
|
||||
* @return Plugin id of the calling plugin
|
||||
*/
|
||||
native register_plugin(const plugin_name[], const version[], const author[]);
|
||||
native register_plugin(const plugin_name[], const version[], const author[], const url[] = "", const description[] = "");
|
||||
|
||||
/**
|
||||
* Precaches a model file.
|
||||
@ -2329,12 +2331,15 @@ native is_plugin_loaded(const name[], bool:usefilename = false);
|
||||
* @param len4 Maximum author buffer size
|
||||
* @param status Buffer to copy plugin status flags to
|
||||
* @param len5 Maximum status buffer size
|
||||
* @param ... Unused and ignored
|
||||
* @param url Buffer to copy plugin url to
|
||||
* @param len6 Maximum url buffer size
|
||||
* @param desc Buffer to copy plugin description to
|
||||
* @param len7 Maximum description buffer size
|
||||
*
|
||||
* @return Plugin index on success, -1 if there is no plugin with given
|
||||
* index
|
||||
*/
|
||||
native get_plugin(index, filename[] = "", len1 = 0, name[] = "", len2 = 0, version[] = "", len3 = 0, author[] = "", len4 = 0, status[] = "", len5 = 0, ...);
|
||||
native get_plugin(index, filename[] = "", len1 = 0, name[] = "", len2 = 0, version[] = "", len3 = 0, author[] = "", len4 = 0, status[] = "", len5 = 0, url[] = "", len6 = 0, desc[] = "", len7 = 0);
|
||||
|
||||
/**
|
||||
* Returns the number of loaded AMXX plugins.
|
||||
|
Reference in New Issue
Block a user