Raised This Month: $ Target: $400
 0% 

command recognized, but not...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BigWalnutZ
Junior Member
Join Date: Apr 2005
Old 04-15-2005 , 15:10   command recognized, but not...
Reply With Quote #1

Titles confusing, sorry, but I am confused also. Currently I have a plugin simply repeating what I enter as args.
Example:
amx_whois ding

It does the correct functions and does what I ask it but then also says "Unrecognized Command"
Code:
] amx_whois ding
[WHOIS] Whois: dingUnknown command: amx_whois
] amx_whois ding 
[WHOIS] Whois: dingUnknown command: amx_whois
] amx_whoisip dong
[WHOIS] WhoisIP: dongUnknown command: amx_whoisip
]
So I am lost. Any help appreciated.

Here are the important snips:

Code:
public plugin_init() {   register_plugin(PLUGIN_NAME, VERSION, AUTHOR)   register_clcmd("amx_whois",   "amx_whois", ADMIN_CHAT, "<name or #userid> - Displays names for Authid")   register_clcmd("amx_whoisip", "amx_whois", ADMIN_CHAT, "<name or #userid> - Displays names for IP") } ....snipitty snip snip.... public amx_whois(id, level, cid) {   if(!cmd_access(id, level, cid, 2))     return PLUGIN_HANDLED       new cmd[32], arg[32]   read_argv(0, cmd, 31)     read_argv(1, arg, 31)     if(equal(cmd, "amx_whois"))     client_print(id, print_console, "[WHOIS] Whois: %s", arg)   else if(equal(cmd, "amx_whoisip"))     client_print(id, print_console, "[WHOIS] WhoisIP: %s", arg)     return PLUGIN_CONTINUE }
BigWalnutZ is offline
 



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 09:50.


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