Raised This Month: $ Target: $400
 0% 

unknown command in console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
taheri6
Member
Join Date: Mar 2006
Old 10-06-2009 , 18:52   unknown command in console
Reply With Quote #1

Hello,

I have a big plug in that I am trying to figure out and when I use one of the commands in it I get 'unknown command X' in console.

I've looked through the spaghetti code and I don't see anything obvious, so that kind of begs the question - How and why does this message occur?

maybe knowing that will get me down the correct path.

tia
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-06-2009 , 18:55   Re: unknown command in console
Reply With Quote #2

Easiest way for us to do it for you is to post the code.

Otherwise, either the command really doesn't exist or the command does not return PLUGIN_HANDLED.
__________________
fysiks is offline
taheri6
Member
Join Date: Mar 2006
Old 10-06-2009 , 19:02   Re: unknown command in console
Reply With Quote #3

Hi,

thanks for your reply. It doesnt return PLUGIN_HANDLED it returns PLUGIN_CONTINUE
Would that cause the problem?
__________________
http://www.yaur.com -=[Yaur]=- Clan Website

Last edited by taheri6; 10-06-2009 at 19:06.
taheri6 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-06-2009 , 19:04   Re: unknown command in console
Reply With Quote #4

Return PLUGIN_HANDLED, so.
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-06-2009 , 19:45   Re: unknown command in console
Reply With Quote #5

Quote:
Originally Posted by taheri6 View Post
It doesnt return PLUGIN_HANDLED it returns PLUGIN_CONTINUE
Would that cause the problem?
Yep. Depending on how that command works you may be able to just change it to PLUGIN_HANDLED
__________________
fysiks is offline
taheri6
Member
Join Date: Mar 2006
Old 10-06-2009 , 20:38   Re: unknown command in console
Reply With Quote #6

Thanks for the replies guys, I will test this out.
Is there a good place to read up on what the return values mean and when to use which ?
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-07-2009 , 03:21   Re: unknown command in console
Reply With Quote #7

That would be the funcwiki: http://www.amxmodx.org/funcwiki.php?...1#const_return

Remember Fakemeta and Ham Sandwich also have specific return values for their functions (forwards, callbacks, etc).
vitorrd is offline
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 22:34.


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