AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Adding own admin command - only returning usage instructions (https://forums.alliedmods.net/showthread.php?t=154885)

Cyb3rH4Xter 04-14-2011 15:28

Adding own admin command - only returning usage instructions
 
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 04-14-2011 17:02

Re: Adding own admin command - only returning usage instructions
 
Solved it myself.


All times are GMT -4. The time now is 19:48.

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