Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Chat help
#1
So, I have it so that if I type: @ before a message, it displays VIP chat, or the like. However, my message still has the @ in the beginning, so others will see the @, and it's really irritating. Is there anyway for me to make sure that doesn't go through in the message, but it is still the operator to call that chat?
Reply
#2
Just rip this:

Code:
' Broadcast message
        If Left$(ChatText, 1) = "'" Then
            ChatText = Mid$(ChatText, 2, Len(ChatText) - 1)
            If Len(ChatText) > 0 Then
                Call BroadcastMsg(ChatText)
            End If
            MyText = vbNullString
            frmMirage.txtMyChat.Text = vbNullString
            Exit Sub
        End If
Reply
#3
Egon Wrote:Just rip this:

Code:
' Broadcast message
        If Left$(ChatText, 1) = "'" Then
            ChatText = Mid$(ChatText, 2, Len(ChatText) - 1)
            If Len(ChatText) > 0 Then
                Call BroadcastMsg(ChatText)
            End If
            MyText = vbNullString
            frmMirage.txtMyChat.Text = vbNullString
            Exit Sub
        End If

Works amazingly. Thanks a lot dude. I was ripping the AdminMsg, and it did the same as the custom one I'm making, so I thought they all would, I didn't think ripping would work
Reply
#4
Just glad it works for you. Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)