Mirage Source
[BUG] MOTD Problem - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+----- Thread: [BUG] MOTD Problem (/showthread.php?tid=2238)



[BUG] MOTD Problem - Nean - 12-10-2008

So when I type /motd test test, as an example, the first test would only show up. I think this is a parse error, but I can't seem to fix it. Wondering if anyone else has a fix for it =\


Re: [BUG] MOTD Problem - Kraft - 12-10-2008

MOTD is not even being changed in this case. (You need to restart the server)
To fix it just find (Sub HandleSetMotd):
Code:
Dim MOTD As String
And remove it.

The "only one word changing problem" is client fault.
Code:
SendMOTDChange Command(1)
It only sends one word.

Sorry for bad English, as always.


Re: [BUG] MOTD Problem - GIAKEN - 12-10-2008

Code:
Dim MOTD As String

For i = 1 To UBound(Command)
   MOTD = MOTD & Command(i)
Next i

SendMOTDChange MOTD
MOTD = vbNullString

I just typed that up in the post...but it should work? I seem to be typing up most of my code right in the post.


Re: [BUG] MOTD Problem - GIAKEN - 14-10-2008

Yeah most of the commands are giving RTE's or not allowing the spaces because they need LBound / UBound and IsNumerical checks.