AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   calling function without registering forward (https://forums.alliedmods.net/showthread.php?t=188645)

Hyper Nova 06-28-2012 19:54

calling function without registering forward
 
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!

hleV 06-28-2012 20:42

Re: calling function without registering forward
 
No. You'd need to create a custom forward and specify its name there.

Emp` 06-28-2012 21:35

Re: calling function without registering forward
 
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.

ConnorMcLeod 06-29-2012 01:06

Re: calling function without registering forward
 
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.


All times are GMT -4. The time now is 15:14.

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