Mirage Source http://www.miragesource.net/forums/ |
|
Commands http://www.miragesource.net/forums/viewtopic.php?f=201&t=1476 |
Page 1 of 11 |
Author: | Xlithan [ Fri Mar 09, 2007 6:46 am ] |
Post subject: | Commands |
Right now the way commands work are strange. If you type /whofjakdjsfahlskjdfh the /who command would still work. I've fixed up some of the commands like the broadcast command by changing the Mid$() to Left$(), and adding a space after the command so the user has definately got to use a space between the command and the message (Not a major issue but I like it that way). However, for commands such as /who, what if I wanted to add a command like /who <name>? I know it's just easy to think of a new command but I still want to fix this problem. Thanks in advance. |
Author: | Verrigan [ Fri Mar 09, 2007 7:05 am ] |
Post subject: | |
You could cut the left portion of the command and then trim the spaces (if there happen to be any..) of the arguments, and then use the arguments as part of your who function.. For example.. Code: CStr = "/whobob"
If Left(CStr, 4) = "/who" Then CStr = Right(CStr, Len(CStr) - 4) Trim$(CStr) CheckWho(Index, CStr) End If The above example will allow the command to work with or without a space, and you could have your CheckWho function pop up with an error message if CStr is not in the socket list.. Just an example. |
Author: | wanai [ Fri May 27, 2022 5:14 pm ] |
Post subject: | Re: Commands |
XVII |
Author: | wanai [ Fri May 27, 2022 5:15 pm ] |
Post subject: | Re: Commands |
191.5 |
Author: | wanai [ Fri May 27, 2022 5:16 pm ] |
Post subject: | Re: Commands |
XVII |
Author: | wanai [ Fri May 27, 2022 5:17 pm ] |
Post subject: | Re: Commands |
refl |
Author: | wanai [ Fri May 27, 2022 5:18 pm ] |
Post subject: | Re: Commands |
Remi |
Author: | wanai [ Fri May 27, 2022 5:20 pm ] |
Post subject: | Re: Commands |
Fran |
Author: | wanai [ Fri May 27, 2022 5:21 pm ] |
Post subject: | Re: Commands |
Symp |
Author: | wanai [ Fri May 27, 2022 5:22 pm ] |
Post subject: | Re: Commands |
Khen |
Author: | wanai [ Fri May 27, 2022 5:23 pm ] |
Post subject: | Re: Commands |
Davi |
Author: | wanai [ Fri May 27, 2022 5:24 pm ] |
Post subject: | Re: Commands |
Piet |
Author: | wanai [ Fri May 27, 2022 5:25 pm ] |
Post subject: | Re: Commands |
Mant |
Author: | wanai [ Fri May 27, 2022 5:26 pm ] |
Post subject: | Re: Commands |
Rond |
Author: | wanai [ Fri May 27, 2022 5:27 pm ] |
Post subject: | Re: Commands |
Tesc |
Author: | wanai [ Fri May 27, 2022 5:28 pm ] |
Post subject: | Re: Commands |
Arth |
Author: | wanai [ Fri May 27, 2022 5:30 pm ] |
Post subject: | Re: Commands |
Past |
Author: | wanai [ Fri May 27, 2022 5:31 pm ] |
Post subject: | Re: Commands |
Micr |
Author: | wanai [ Fri May 27, 2022 5:32 pm ] |
Post subject: | Re: Commands |
Gian |
Author: | wanai [ Fri May 27, 2022 5:33 pm ] |
Post subject: | Re: Commands |
Lala |
Author: | wanai [ Fri May 27, 2022 5:34 pm ] |
Post subject: | Re: Commands |
Wils |
Author: | wanai [ Fri May 27, 2022 5:35 pm ] |
Post subject: | Re: Commands |
Jakt |
Page 1 of 11 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |