AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fakemeta DispatchTouch? DispatchThink? [Solved] (https://forums.alliedmods.net/showthread.php?t=46975)

organizedKaoS 11-06-2006 13:20

Fakemeta DispatchTouch? DispatchThink? [Solved]
 
I have a plugin that uses only fakemeta.

It has two forwards that are giving me errors every so often.

Code:
register_forward(FM_Touch, "my_touch_func") register_forward(FM_Think, "my_think_func") public my_touch_func(ptr, ptd) {      code here } public my_think_func(entity) {      code here }

Heres my problem.

While the plugin works the way it should, I get errors from the forwards.

One is when the touch event has been completed, I get a [META] Error: plugin failed to see fakemeta_amxx_i386.so:: DispatchTouch().

And the same error for think, when the entity that is thinking has been terminated, it generates that same error but with DispatchThink().

I wanted to know if anyone knew if certain fm returns should be used inside these forward functions to stop these errors?

Thanks.

The Specialist 11-06-2006 13:33

Re: Fakemeta DispatchTouch? DispatchThink?
 
K first f all you might be better of to try player_prethink. but the returns you need are .
Code:
return FMRES_HANDLED; return FMRES_IGNORED; return FMRES_OVERRIDE; return FMRES_SUPERCEDE;
I would use FMRES_HANDLED in this case . hope this helps

VEN 11-06-2006 14:07

Re: Fakemeta DispatchTouch? DispatchThink?
 
Show your code or ask DEVs.

organizedKaoS 11-06-2006 14:35

Re: Fakemeta DispatchTouch? DispatchThink?
 
Quote:

Originally Posted by The Specialist (Post 400463)
K first f all you might be better of to try player_prethink. but the returns you need are .
Code:
return FMRES_HANDLED; return FMRES_IGNORED; return FMRES_OVERRIDE; return FMRES_SUPERCEDE;
I would use FMRES_HANDLED in this case . hope this helps

Where would I find this player_prethink? I think your confusing yourself. The only other "call" I know of is client_prethink and that is in engine.

I do not have engine running on my server at all....and I'm not gonna turn it on just for one function.

Ven, I'll grab the code soon as I can get home...I'm at work and I dont store my source codes here.

The Specialist 11-06-2006 14:49

Re: Fakemeta DispatchTouch? DispatchThink?
 
go look at my code from my plugin "weapon jams"
Code:
register_forward(FM_PlayerPreThink, "weapon_jam")
it uses fakemeta . it works , My code has no erros or run time errors. You should check it out and look at my code :up:

http://forums.alliedmods.net/showthread.php?t=46937

P34nut 11-06-2006 15:00

Re: Fakemeta DispatchTouch? DispatchThink?
 
The specialist it looks like you dont know what organizedKaoS is talking about

what organizedKaoS want has nothing to do with PlayerPreThink

organizedKaoS 11-06-2006 15:12

Re: Fakemeta DispatchTouch? DispatchThink?
 
Quote:

Originally Posted by P34nut (Post 400498)
The specialist it looks like you dont know what organizedKaoS is talking about

what organizedKaoS want has nothing to do with PlayerPreThink

Thank you P34nut.

He is thinking of "PLAYER" prethink.

I am using "THINK".

Two very different forwards.

Please read thoroughly next time specialist.

The Specialist 11-06-2006 15:18

Re: Fakemeta DispatchTouch? DispatchThink?
 
Quote:

Originally Posted by organizedKaoS (Post 400502)
Thank you P34nut.

He is thinking of "PLAYER" prethink.

I am using "THINK".

Two very different forwards.

Please read thoroughly next time specialist.

How can anyone know what you wanted ? even VEN told you to post your code. You didnt specify what you were doing or what the code was. So all we could do was guess.

organizedKaoS 11-06-2006 15:20

Re: Fakemeta DispatchTouch? DispatchThink?
 
Quote:

Originally Posted by The Specialist (Post 400506)
How can anyone know what you wanted ? even VEN told you to post your code. You didnt specify what you were doing or what the code was. So all we could do was guess.

Fool....READ.

Quote:

Originally Posted by organizedKaoS
Code:
register_forward(FM_Touch, "my_touch_func") register_forward(FM_Think, "my_think_func")

How can you not distinguish playerprethink from think with this in your face.

Quote:

Originally Posted by organizedKaoS
Ven, I'll grab the code soon as I can get home...I'm at work and I dont store my source codes here


The Specialist 11-06-2006 15:26

Re: Fakemeta DispatchTouch? DispatchThink?
 
Quote:

Originally Posted by organizedKaoS (Post 400490)
Where would I find this player_prethink? I think your confusing yourself. The only other "call" I know of is client_prethink and that is in engine.

I was just trying to help you. :up: and yes your right i over looked the fact that you sadi youd post the code later sorry , your right :up:


All times are GMT -4. The time now is 06:52.

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