Raised This Month: $ Target: $400
 0% 

Adding own admin command - only returning usage instructions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 04-14-2011 , 15:28   Adding own admin command - only returning usage instructions
Reply With Quote #1

I have added a new command to an existing plugin. The command should require some admin privileges. But when I write it in the console the plugin only returns the usage instructions?

Example:

I connect to my server as admin
Opens the console and writes amx_rateall
The console returns:
Usage: amx_rateall - Start a server-wide maprate

Here is the code for the command:

PHP Code:
register_concmd("amx_rateall","cmdRateAll"ADMIN_MAP" - Start a server-wide maprate"
Just say if you want me to write the cmdRateAll, I don't think the problem relies there so I don't do it for now.

Anyone know what is wrong? Other commands work.
Cyb3rH4Xter 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 19:48.


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