Problem with gametext / ackslimit
#1

Salut, am inceput sa fac un system de incarcare a server-ului dar problema este ca dupa ce arata acel gametext, pe la numarul 40 imi face un spam imens cu ackslimit:

Код HTML:
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
[10:57:01] [warning] client exceeded 'ackslimit' 127.0.0.1:65128 (8854) Limit: 3000/sec
PHP код:
OnPlayerConnect -> Count(playerid);
forward Count(playerid);
public 
Count(playerid)
{
    new 
string[100];
    
format(stringsizeof(string), "~y~Server is loading...~n~~w~Please wait %d seconds!"ServerTime);
    
GameTextForPlayer(playeridstring10005);
    if(
ServerTime >= 1SetTimerEx("Count"10001"d"playerid);

Help me!
Reply
#2

As far as i know, This was Happened with me alot of times. Open your server.cfg and Increase your Ackslimit to 6000, maybe it should work.

Default is 3000.
Reply
#3

Quote:
Originally Posted by SpikY_
Посмотреть сообщение
As far as i know, This was Happened with me alot of times. Open your server.cfg and Increase your Ackslimit to 6000, maybe it should work.

Default is 3000.
It doesn't help. I had that problem and did that, it's the bad thing to do. And the one with the problem.. it's because you have an infinite loop, I would love to help you but I don't know how to repair it so.. you better delete or cu /* */ the command until someone will help you..
Reply
#4

Help me!
Reply
#5

Do it like this:
PHP код:
//global:
new PlayerTimer[MAX_PLAYERS];
//OnPlayerConnect:
ServerTime 10;//10 seconds
PlayerTimer[playerid] = SetTimerEx("Count",1000,1,"i",playerid);
//Callback "Count":
public Count(playerid)
{
    new 
string[100];
    
format(string,sizeof string,"~y~Server is loading...~n~~w~Please wait %i seconds!",ServerTime);
    
GameTextForPlayer(playerid,string,1000,5);
    if(
ServerTime >= 1)ServerTime --;
    else if(
ServerTime == 0)
    {
        
//ServerTime == 0
        
KillTimer(PlayerTimer[playerid]);
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)