AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   problem cmd witch "/" and "." (https://forums.alliedmods.net/showthread.php?t=143776)

BackStats 11-24-2010 16:22

problem cmd witch "/" and "."
 
I'm having a strange problem, when I changed the commands and is now going wrong.


When I change the command:
PHP Code:

register_clcmd("say /time""cmdPlTime"

to
PHP Code:

register_clcmd("say .time""cmdPlTime"

command with "." does not work.
what's the solution?

ProIcons 11-24-2010 16:24

Re: problem cmd witch "/" and "."
 
The Function cmdP1Time is amxmodx's core time function?

Exolent[jNr] 11-24-2010 16:37

Re: problem cmd witch "/" and "."
 
Check if other plugins are hooking "say .time" and blocking it before your plugin can hook it.

BackStats 11-24-2010 16:45

Re: problem cmd witch "/" and "."
 
It's actually a plugin with several commands together with "/".
But when I change to "." they do not work.
The commands that display function in chat function, but show that the functions do not work on screen motd.

fysiks 11-24-2010 18:16

Re: problem cmd witch "/" and "."
 
If the function that it points to parses teh command using that character it could mess it up. It really depends on how the function is designed. Also, you really need to see Exolent's comment.

BackStats 11-24-2010 18:24

Re: problem cmd witch "/" and "."
 
I have a plugin with:
PHP Code:

{
    static 
arg[192]
    
read_args(arg,191)
    
remove_quotes(arg)

    if ( 
arg[0] == '.'  || arg[0] == '!') { client_cmd(id,arg); return PLUGIN_HANDLED; }
    return 
PLUGIN_CONTINUE;



fysiks 11-24-2010 18:28

Re: problem cmd witch "/" and "."
 
Quote:

Originally Posted by BackStats (Post 1356032)
I have a plugin with:
PHP Code:

{
    static 
arg[192]
    
read_args(arg,191)
    
remove_quotes(arg)

    if ( 
arg[0] == '.'  || arg[0] == '!') { client_cmd(id,arg); return PLUGIN_HANDLED; }
    return 
PLUGIN_CONTINUE;



Which plugin? The one you are refering to in your first post? A completely different plugin?


All times are GMT -4. The time now is 11:25.

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