AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Unknown Command: (https://forums.alliedmods.net/showthread.php?t=57231)

playerone 07-01-2007 01:58

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?

YamiKaitou 07-01-2007 02:10

Re: Unknown Command:
 
return PLUGIN_HANDLED instead of PLUGIN_CONTINUE

playerone 07-01-2007 02:50

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.