• Welcome to Valhalla Legends Archive.
 

No carry through... ewwy

Started by CrAz3D, September 20, 2004, 08:37 PM

Previous topic - Next topic

CrAz3D

If KeyAscii = 13 Then
   If Left(txtSend.text, 1) = "\" Then
       CS.DoCommands intAccess, CurrentUser, txtSend.text, False
       txtSend.text = ""
       KeyAscii = 0
   Else
       If PL.PlugEvent("metalk", CurrentUser, txtSend.text) = False Then
           Queue.AddQueue txtSend.text
       End If
       txtSend.text = ""
       KeyAscii = 0
   End If
End If


In my Plugin I set Run = True, that way it doesn't send text to BNET.

Case "metalk"       '//This is the event called when YOU say something
       If LCase(Left(Message, 9)) = "/showseen" Then
           Form1.Show
           Run = True
       End If


For some reason it isn't carrying over, any ideas?
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

UserLoser.

Are you moving the value of Run to PlugEvent at the end of that function?

This may not be related to your problem, but usually don't you check for Left(txtSend.Text, 1) = "/" for running local commands?

Grok

I saw the same thing, but there is not enough code to either figure out his intentions.  I have only a vague idea what "carrying over" means without better context.

CrAz3D

I figured out my problem.  I was checking multiple objects, all of which return a value for their own specific Run function.  Not all were returning true so it canceled out...I just did a little check to see if any of the Runs = true then if only 1 was true, the PlugEvent became true also.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...