Raised This Month: $ Target: $400
 0% 

calling function without registering forward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hyper Nova
BANNED
Join Date: May 2012
Old 06-28-2012 , 19:54   calling function without registering forward
Reply With Quote #1

Hello!
Is there way to call function like this
PHP Code:
new var[256// inside of this string there will be function name

public something(id)
{
     var()
}

public var() 
// var will be that what is inside variable var, i just but this for example
{
}

// or somehow like this

public something(id)
{
    %
s() < var[0] >
}

public var()
{

Thank you in advance!

Last edited by Hyper Nova; 06-28-2012 at 19:56.
Hyper Nova is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-28-2012 , 20:42   Re: calling function without registering forward
Reply With Quote #2

No. You'd need to create a custom forward and specify its name there.
hleV is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-28-2012 , 21:35   Re: calling function without registering forward
Reply With Quote #3

You can either create a forward using CreateOneForward or CreateMultiForward or you can use the callfunc_* natives.

That's the closest you will get to what you are trying to achieve.

Last edited by Emp`; 06-28-2012 at 21:36.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-29-2012 , 01:06   Re: calling function without registering forward
Reply With Quote #4

Could you explicit what you are trying to do ?
I think that if what you do is only in a single plugin, you shouldn't need all that stuff.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 15:14.


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