Raised This Month: $ Target: $400
 0% 

Fakemeta DispatchTouch? DispatchThink? [Solved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-06-2006 , 13:20   Fakemeta DispatchTouch? DispatchThink? [Solved]
Reply With Quote #1

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.

Last edited by organizedKaoS; 11-07-2006 at 11:57.
organizedKaoS is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-06-2006 , 13:33   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #2

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
The Specialist is offline
Send a message via AIM to The Specialist
VEN
Veteran Member
Join Date: Jan 2005
Old 11-06-2006 , 14:07   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #3

Show your code or ask DEVs.
VEN is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-06-2006 , 14:35   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #4

Quote:
Originally Posted by The Specialist View Post
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.
organizedKaoS is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-06-2006 , 14:49   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #5

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

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

Last edited by The Specialist; 11-06-2006 at 14:52.
The Specialist is offline
Send a message via AIM to The Specialist
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 11-06-2006 , 15:00   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #6

The specialist it looks like you dont know what organizedKaoS is talking about

what organizedKaoS want has nothing to do with PlayerPreThink
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-06-2006 , 15:12   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #7

Quote:
Originally Posted by P34nut View Post
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.
organizedKaoS is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-06-2006 , 15:18   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #8

Quote:
Originally Posted by organizedKaoS View Post
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.
The Specialist is offline
Send a message via AIM to The Specialist
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-06-2006 , 15:20   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #9

Quote:
Originally Posted by The Specialist View Post
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

Last edited by organizedKaoS; 11-06-2006 at 15:22.
organizedKaoS is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-06-2006 , 15:26   Re: Fakemeta DispatchTouch? DispatchThink?
Reply With Quote #10

Quote:
Originally Posted by organizedKaoS View Post
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. and yes your right i over looked the fact that you sadi youd post the code later sorry , your right

Last edited by The Specialist; 11-06-2006 at 15:39.
The Specialist is offline
Send a message via AIM to The Specialist
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 06:52.


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