Mirage Source
Erm. Halp. - 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: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Erm. Halp. (/showthread.php?tid=2078)



Erm. Halp. - Nean - 12-09-2008

So I made this system, so that when people log in, not only does it display who's online, but it displays who's online that has a PK. However, I want people to be able to check whenever they damned well please, so I made a command
Code:
' Whos online has a PK
        If Mid$(MyText, 1, 9) = "/whohaspk" Then
            Call SendWhoHasPK
            MyText = vbNullString
            frmMirage.txtMyChat.Text = vbNullString
            Exit Sub
        End If
However, when I type that in game, it just says "No ones online" which isn't whats set for the whohasPk packet, but it is for the whos online packet. So how do I fix this? Also when I was trying to make a member of the month (MOTM), an exact rip off of MOTD, If I change one, the other changes. How do I fix this? Sorry for the absolutely stupid questions, I'm horrible with VB6 at the moment. Also I'm using MS4.


Re: Erm. Halp. - Robin - 12-09-2008

It's because of how the commands work.

Move it above the "/who" check.

Otherwise it'll check to see if it's /who first (Which it is, but with some extra characters).


Re: Erm. Halp. - Nean - 12-09-2008

Robin Wrote:It's because of how the commands work.

Move it above the "/who" check.

Otherwise it'll check to see if it's /who first (Which it is, but with some extra characters).

Ah, I see. See I would of never been able to tell, I didn't really think that placement was an issue. Thanks!


Re: Erm. Halp. - Robin - 13-09-2008

No problem. I had a similar problem back when I first started... like 4 years ago.

Pretty sure it was Sonire who cleared it up with me.

Or Dark Echo. Dark Echo taught me everything