Raised This Month: $ Target: $400
 0% 

Unknown Command:


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
playerone
New Member
Join Date: Jul 2006
Old 07-01-2007 , 01:58   Unknown Command:
Reply With Quote #1

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?
playerone is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-01-2007 , 02:10   Re: Unknown Command:
Reply With Quote #2

return PLUGIN_HANDLED instead of PLUGIN_CONTINUE
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
playerone
New Member
Join Date: Jul 2006
Old 07-01-2007 , 02:50   Re: Unknown Command:
Reply With Quote #3

thanks that worked.
playerone 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 21:28.


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