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

How store Function in KeyValues or get function name from Function?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 06-29-2015 , 10:28   How store Function in KeyValues or get function name from Function?
Reply With Quote #1

How store Function in KeyValues or get function name from Function?
Or another way?
Please, help me.
Kailo is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 06-29-2015 , 11:14   Re: How store Function in KeyValues or get function name from Function?
Reply With Quote #2

If I recall correctly, functions don't have names once the sp is turned into smx, and I don't recall any way of being able to execute arbitrary SM code via a string input.

You seem like you're gonna fall into the X-Y Problem trap. What EXACTLY do you want help with? (In other words, what are you trying to accomplish?)

Last edited by Potato Uno; 06-29-2015 at 11:15.
Potato Uno is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-29-2015 , 11:17   Re: How store Function in KeyValues or get function name from Function?
Reply With Quote #3

What's the use case for this?

Traditionally, for calling functions in another plugin, you'd store it in a Forward to do it.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 02:35.


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