Results 1 to 7 of 7
  1. #1
    dsds1's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    2
    My Mood
    Fine

    Exclamation Endon doesn't end thread

    hello, is there anything wrong to
    Code:
    self endon("death");
    ?

    when I die, the thread doesn't end
    it bugs out somewhat
    Last edited by dsds1; 08-29-2011 at 07:21 PM.

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by dsds1 View Post
    hello, is there anything wrong to
    Code:
    self endon("death");
    ?

    when I die, the thread doesn't end
    it bugs out somewhat
    It all depends on where you put it.
    You might placed it wrong....
    It also depends on what functions it have.
    If it's like a dvar, it won't change the dvar back to normal.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Post ur thread here so we can look into it.

  4. #4
    dsds1's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    2
    My Mood
    Fine
    Quote Originally Posted by mathieutje12 View Post
    Post ur thread here so we can look into it.
    self endon("disconnect");
    self endon("death");
    self notifyOnPlayerCommand("5", "+actionslot 2");
    for(;{
    self waittill("5");
    self.showpage2 setText("blablabla");
    wait 0.05;
    self waittill("5");
    self.showpage2 setText("");
    wait 0.01;
    }
    }


    the buttons and text works, but when I die and I've pressed 5 one time, it will bug

  5. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by dsds1 View Post
    self endon("disconnect");
    self endon("death");
    self notifyOnPlayerCommand("5", "+actionslot 2");
    for(;{
    self waittill("5");
    self.showpage2 setText("blablabla");
    wait 0.05;
    self waittill("5");
    self.showpage2 setText("");
    wait 0.01;
    }
    }


    the buttons and text works, but when I die and I've pressed 5 one time, it will bug
    You need to delete the text....

    self.showpage2 delete(); //I might have the wrong code.
    Why it may crash:
    I think the reason is because you overlap to many texts. (Hud)
    And this will make it be to much for the server to handle.

    So keep in mind. To much HUD, CAN crash your server/game.
    Last edited by Jorndel; 08-31-2011 at 08:17 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    DestroyatDeath(hud)
    {
    self waittill("death");
    hud destroy();
    }

    self thread DestroyatDeath(self.showpage2);

  7. The Following User Says Thank You to Yamato For This Useful Post:

    dsds1 (08-31-2011)

  8. #7
    dsds1's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    2
    My Mood
    Fine
    Quote Originally Posted by Yamato View Post
    DestroyatDeath(hud)
    {
    self waittill("death");
    hud destroy();
    }

    self thread DestroyatDeath(self.showpage2);
    I have other way but thanks for this
    this what made me found the way
    /request to mark as solved

Similar Threads

  1. [Solved]Why MPGH doesn't accept my Threads?
    By ___[.T.]___ in forum CrossFire Help
    Replies: 5
    Last Post: 11-13-2010, 05:57 PM
  2. End Thread?
    By shotyoudie in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 6
    Last Post: 08-27-2010, 12:21 AM
  3. End a Thread?
    By shotyoudie in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 08-17-2010, 04:56 AM
  4. Challenge Thread
    By arunforce in forum General
    Replies: 7
    Last Post: 03-26-2007, 02:22 PM
  5. I eat trees (lost thread)
    By Chronologix in forum Help & Requests
    Replies: 14
    Last Post: 01-27-2006, 10:29 PM