Raised This Month: $ Target: $400
 0% 

register_native natives and ... parameters


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-14-2007 , 00:55   register_native natives and ... parameters
Reply With Quote #1

Here is a function prototype in Plugin A:

Code:
public func(a,b,c[],{Float,Sql,Result,_}:...)

I would like to call this with a register_native native (that is registered in Plugin A) from Plugin B. I know that I can collect all of the arguments using native style 1 like this:

Code:
public func_native_handler(a,b,c[],{Float,Sql,Result,_}:...) {     param_convert(3);           new i, argnum = numargs();     for(i=4;i<=argnum;i++) param_convert(i); }

However, from here I need to make a direct call to "func" with all of these extra parameters, which could be of any variable type. I can't use vformat or anything and then send the condensed result into "func". The only thing that I could come up with was callfunc, except that I can't get the parameter types required for each specific native.

Any suggestions?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 06-14-2007 at 00:57.
XxAvalanchexX is offline
 



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 10:44.


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