[REQ] Function request - callfunc_push_array()
Basicly, it would be nice to have callfunc_push_array().
Yes I know, that this is out-dated with ExecuteForward and CreateForward and they exist now, but those won't work with the way my plugin works. Thank you. --Zenith |
Re: [REQ] Function request - callfunc_push_array()
I never really got why that wasn't in there...
|
Re: [REQ] Function request - callfunc_push_array()
Me to. Why have a callfunc_push_str() function but not a callfunc_push_array() :/.
|
Re: [REQ] Function request - callfunc_push_array()
I don't know whether I want to add this or not as I view the callfunc set of natives to be deprecated (as they can be nicely replaced by register_native and CreateOneForward).
I'm marking it for unsupported addition for now, I'll reply to this thread when there's a commit to the source tree. |
Re: [REQ] Function request - callfunc_push_array()
Quote:
My plugin needs needs to be able to dynamically pass parameters to a function. Ok this is how it works (I won't past code since its a private plugin).... My plugin is using the sockets. Ok when data is received, it is sorted out into arguments, then, the plugin will look at how some other plugin wants this data to be called to its function and then convert the parameters from a string to what the data type needs to be. Summary: Plugin receives a "message". Looks through it's message table and finds the base plugin that registered the message. Sorts out the arguments. Loops through all the arguments and checks from the forward data type table what data type each argument should be, and converts it (str_to_num, str_to_float, etc). The last step when the plugin loops through all the arguments is why I need the callfunc_push_array(), because of the plugin's protocal. If any of the DEV's need to look at the code, I'll PM it to them. |
Re: [REQ] Function request - callfunc_push_array()
Quote:
It lets you execute public functions from any plugin Callfunc implementation |
Re: [REQ] Function request - callfunc_push_array()
Your's is actually very close to how mine works, but it still doesn't solve my problem :/.
|
Re: [REQ] Function request - callfunc_push_array()
And i have a solution with dynamic natives for you
Code:
output: Code:
direct call |
Re: [REQ] Function request - callfunc_push_array()
Wow, thanks.
I actually though about doing that, since aww nm screw it. Thanks again. +karama -Zenith |
Re: [REQ] Function request - callfunc_push_array()
1 Attachment(s)
Here is a patch file for the current svn revision to add this native
|
All times are GMT -4. The time now is 17:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.