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

How to save Function in dynamic array?


Post New Thread Reply   
 
Thread Tools Display Modes
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 02-06-2021 , 07:58   Re: How to save Function in dynamic array?
Reply With Quote #11

You can also use PrivateForward instead of storing plugin and function.
Then you could do something like this:

Code:
enum struct GameMode {
    PrivateForward Func;
}

// somewhere in code
PrivateForward hFwd = gameModes_Handler.Get( index, GameMode::Func );
Call_StartForward( hFwd );
Call_Finish();
__________________
MAGNAT2645 is offline
Dakex
Junior Member
Join Date: Mar 2019
Old 02-08-2021 , 08:12   Re: How to save Function in dynamic array?
Reply With Quote #12

Thank you all! You helped me a lot.
Dakex 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 13:28.


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