AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   unknown command in console (https://forums.alliedmods.net/showthread.php?t=105650)

taheri6 10-06-2009 18:52

unknown command in console
 
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

fysiks 10-06-2009 18:55

Re: unknown command in console
 
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.

taheri6 10-06-2009 19:02

Re: unknown command in console
 
Hi,

thanks for your reply. It doesnt return PLUGIN_HANDLED it returns PLUGIN_CONTINUE
Would that cause the problem?

Arkshine 10-06-2009 19:04

Re: unknown command in console
 
Return PLUGIN_HANDLED, so.

fysiks 10-06-2009 19:45

Re: unknown command in console
 
Quote:

Originally Posted by taheri6 (Post 954415)
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

taheri6 10-06-2009 20:38

Re: unknown command in console
 
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 ?

vitorrd 10-07-2009 03:21

Re: unknown command in console
 
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).


All times are GMT -4. The time now is 22:34.

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