Raised This Month: $12 Target: $400
 3% 

Can forward system has dynamic-length arguments?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 03-12-2022 , 22:35   Can forward system has dynamic-length arguments?
Reply With Quote #1

I know MF_RegisterSPForward, MF_ExecuteForward has varargs (...)
however, I think the parameter length must be known and declared at the compile time.
for some reason I need something like the old callfunc_push_int() that supports dynamic-length arguments in C++ (run time)

for example I want to write a native function which is varargs (...) and auto push all the arguments to the MF_ExecuteForward or MF_RegisterSPForward etc...

possible?
__________________

Last edited by 11922911; 03-12-2022 at 22:40.
11922911 is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 03-13-2022 , 10:13   Re: Can forward system has dynamic-length arguments?
Reply With Quote #2

I have tried recreate the callfunc system by using MF_AmxExec, MF_AmxAllot, MF_AmxPush etc
but the important point is... the MF_AmxRelease function is missing,
I cannot find anything about that in amxx...
__________________

Last edited by 11922911; 03-13-2022 at 10:14.
11922911 is offline
Reply


Thread Tools
Display Modes

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:09.


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