Page 1 of 1

Re: Excuse me but I've got one strange problem

Posted: Tue Jan 06, 2009 4:05 pm
by Geesu

Re: Excuse me but I've got one strange problem

Posted: Tue Jan 06, 2009 4:39 pm
by Striker
I got this error with an old AMXX (also an very old wc3-version) too.

I fixed it with changing (edited to work with wc3ft 3.0)

Code: Select all

// Register forwards (from fakemeta)
register_forward( FM_TraceLine	, "TRIGGER_TraceLine");
to

Code: Select all

// Register forwards (from fakemeta)
register_forward( FM_TraceLine	, "TRIGGER_TraceLine", 1);
Don't know if it will work here also...

Re: Excuse me but I've got one strange problem

Posted: Wed Jan 07, 2009 11:41 am
by Geesu
Interesting... Is this a current problem in 3.0? And what does adding the 1 do?

Re: Excuse me but I've got one strange problem

Posted: Tue Jan 13, 2009 1:00 pm
by Striker
Geesu wrote:Interesting... Is this a current problem in 3.0? And what does adding the 1 do?
I don't have this problem with 3.0...

Code: Select all

register_forward ( forwardType, callback[], [ post = 0 ] )

If post is set to 1, the function is a "POST" function in metamod, which means that it is called AFTER the engine has called the original. This also means you cannot block the original function.