24.06.2012, 20:51
Maybe something like this:
I don't think it's possible any other way.
pawn Код:
forward func1();
public func1()
{
otherFunc(1);
}
forward func2();
public func2()
{
otherFunc(2);
}
otherFunc(functionID)
{
//some code to get func1's or func2's name or idx
if(functionID == 1) print("Called from function Name func1");
if(functionID == 2) print("Called from function Name func2");
}