Clearing Chat
#1

Is there any other method to clear the chat ?

i made this one, but it make the server lags at the moment i type the command, and sometimes it crashes some players.

pawn Код:
for(new i = 0; i < 100; i ++)
{
    SendClientMessageToAll(COLOR_WHITE, "");
}
Reply
#2

You could lower it to say, 30.
Reply
#3

Quote:
Originally Posted by Luis-
Посмотреть сообщение
You could lower it to say, 30.
could you please tell me what is the number refers to ?
Reply
#4

I don't think you need to have it all the way up to 100, either. You also could do it like this:
for(new i = 0; i < 100; i ++) SendClientMessageToAll(COLOR_GREY, " ");
Might cause a little less lag, but I don't really get any lag when using either of them. Maybe it's the host causing the issue to reside? Both of them should work fine...
Reply
#5

Well, the 100 is how many Client messages are sent, which is a lot really. So, changing it to 30 would be more efficient imo.
Reply
#6

There is 100 lines in the buffer.
Reply
#7

Just make simple? In my old gamemode i used this.

pawn Код:
SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
Reply
#8

Thank you :)

[Edit:] Thanks all.. Useful information.
Reply
#9

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
There is 100 lines in the buffer.
50, IIRC.
Reply
#10

what about with this:

pawn Код:
new i = 0;
while(i != 100)
{
 SCM(...);
 i++;
}
lel
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)