Raised This Month: $ Target: $400
 0% 

get_func_id return


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-13-2009 , 11:15   get_func_id return
Reply With Quote #1

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.

Last edited by joaquimandrade; 02-13-2009 at 11:35.
joaquimandrade is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-13-2009 , 12:17   Re: get_func_id return
Reply With Quote #2

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
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-13-2009 , 12:20   Re: get_func_id return
Reply With Quote #3

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

anakin_cstrike is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-13-2009 , 12:43   Re: get_func_id return
Reply With Quote #4

Quote:
Originally Posted by anakin_cstrike View Post
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"
joaquimandrade is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-13-2009 , 14:46   Re: get_func_id return
Reply With Quote #5

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.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-13-2009 , 17:28   Re: get_func_id return
Reply With Quote #6

thank you both
joaquimandrade is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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