Problem with registering a command.
I have this function:
Code:
public deleteAllBlocks(id, bool:bNotify)Code:
register_concmd("amx_bmdelete", "deleteAllBlocks", BM_ADMIN_LEVEL, "This will delete all of the blocks, and only the blocks.");I was guessing what I need to do is change the registration of the command to: Code:
register_concmd("amx_bmdelete", "deleteAllBlocks(id, true)", BM_ADMIN_LEVEL, "This will delete all of the blocks, and only the blocks.");but It won't let it. What do I need to do? |
Re: Problem with registering a command.
U can't pass parameters thorought cmd funtions:
PHP Code:
PHP Code:
|
Re: Problem with registering a command.
But without bNotify, it will notify everytime it is deleted, I don't want it to be notified in here:
Quote:
|
Re: Problem with registering a command.
Quote:
|
Re: Problem with registering a command.
how does it work?
I define it with the same name? bNotify? and set it to true? |
| All times are GMT -4. The time now is 02:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.