Unknown Command:
code looks something like this,
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("jslap", "cmdSlap", ADMIN_ALL, "<target>") register_clcmd("jsprint", "cmdSprint", ADMIN_ALL, "<self>") register_clcmd("jgod", "cmdGod", ADMIN_ALL, "<self>") register_clcmd("jgrav", "cmdGrav", ADMIN_ALL, "<self>") register_clcmd("jability", "cmdSpecial", ADMIN_ALL, "<self>") } public cmdSpecial(id){ switch(g_PlayerClass[id]){ case 1: { cmdSlap(id) } case 2: { cmdSprint(id) } case 3: { cmdGod(id) } case 4: { cmdGrav(id) } } return PLUGIN_CONTINUE } When ever i use jability in the console i get "Unknown Command: jability" but it functions normally and i get feed back from what it triggers, what gives? |
Re: Unknown Command:
return PLUGIN_HANDLED instead of PLUGIN_CONTINUE
|
Re: Unknown Command:
thanks that worked.
|
| All times are GMT -4. The time now is 21:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.