About the wrong command
#10

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Again, different command processors go about this different ways.

From my understanding you wish to display a message like "Sorry the command '/hel' doesn't exist! Did you mean '/help'?"

To do this you will need a list of all of your commands and a way to compare each command to the given input. You may even want a Levenshtein distance calculation. This will determine which command is closest to the input.

Once you have that part figured out the rest depends on what command processor you use. So, again, what command processor do you use?
Yeah, that's exactly what I mean. I'm using OnPlayerCommandText as the command client.
Reply


Messages In This Thread
About the wrong command - by Grumbles - 30.03.2019, 22:40
Re: About the wrong command - by RogueDrifter - 30.03.2019, 23:04
Re: About the wrong command - by Grumbles - 31.03.2019, 02:10
Re: About the wrong command - by iorp - 31.03.2019, 04:26
Re: About the wrong command - by Crayder - 31.03.2019, 04:27
Re: About the wrong command - by iorp - 31.03.2019, 04:37
Re: About the wrong command - by Grumbles - 03.04.2019, 02:21
Re: About the wrong command - by Crayder - 03.04.2019, 03:26
Re: About the wrong command - by CONTROLA - 04.04.2019, 09:38
Re: About the wrong command - by Grumbles - 04.04.2019, 18:02
Re: About the wrong command - by Logic_ - 04.04.2019, 18:52
Re: About the wrong command - by Crayder - 05.04.2019, 03:54

Forum Jump:


Users browsing this thread: 1 Guest(s)