Solved❗ Endon doesn't end thread

Posts 1–7 of 7 · Page 1 of 1
❗ 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
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.
Post ur thread here so we can look into it.
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
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.
DestroyatDeath(hud)
{
self waittill("death");
hud destroy();
}

self thread DestroyatDeath(self.showpage2);
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
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us