AlliedModders

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

joaquimandrade 02-13-2009 11:15

get_func_id return
 
The higher value that get_func_id can return, is equal to the number of functions that the plugin has?

Edit: Sorry for posting in the wrong forum. I was distracted.

Exolent[jNr] 02-13-2009 12:17

Re: get_func_id return
 
Quote:

Notes:

Parameters:
* funcName: function name
* pluginId: id of the plugin; if lower than 0, the caller plugin is taken (=> the function behaves exactly like funcidx (core.inc))

Return value is -1 when the function / the plugin could not be found.
http://www.amxmodx.org/funcwiki.php?...c_id&go=search

anakin_cstrike 02-13-2009 12:20

Re: get_func_id return
 
I think yes, it cannot return more functions if they don't exist.

joaquimandrade 02-13-2009 12:43

Re: get_func_id return
 
Quote:

Originally Posted by anakin_cstrike (Post 760958)
I think yes, it cannot return more functions if they don't exist.

I was hoping a response like:

"Yes, but the forwards don't count"
"No cause they can have randoms indexes"

Hawk552 02-13-2009 14:46

Re: get_func_id return
 
My guess is that it counts the number of public functions, whether or not they're forwards. That means that stocks and private functions would not be counted.

joaquimandrade 02-13-2009 17:28

Re: get_func_id return
 
thank you both


All times are GMT -4. The time now is 16:57.

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