Command without " / "
#3

You can't do it in OnPlayerCommandText, as it is only called when there is a / as the first character.

You need to do it in OnPlayerText, like DRIFT_HUNTER has shown an example of comparing the first character of the text string to the AND character.

Also you should remember that strcmp is not a command processor, it is merely for comparing strings, it would seem you suggested it was a command processor in your post . On the other hand, dcmd is specifically for commands, however you would not be able to use dcmd either for this function, as it uses OnPlayerCommandText, which is only called when you add a / as the first character
Reply


Messages In This Thread
Command without " / " - by blackwave - 13.12.2010, 17:35
Re: Command without " / " - by DRIFT_HUNTER - 13.12.2010, 17:43
Re: Command without " / " - by JaTochNietDan - 13.12.2010, 17:57
Re: Command without " / " - by blackwave - 13.12.2010, 18:03
AW: Command without " / " - by Cank - 13.12.2010, 18:32
Re: Command without " / " - by Ash. - 13.12.2010, 18:38
Re: AW: Command without " / " - by CyNiC - 13.12.2010, 18:40
Re: AW: Command without " / " - by Ash. - 13.12.2010, 18:45

Forum Jump:


Users browsing this thread: 2 Guest(s)