SA-MP Forums Archive
Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec (/showthread.php?tid=549561)



Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Supermaxultraswag - 07.12.2014

When I kill NPC i get crashed and I get this message : Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec. I read that i had to icrease ackslimit, but how can i do that? Im using samp 0.3z r4 version.


Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Supermaxultraswag - 07.12.2014

pls guys


Respuesta: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - kgbayala528 - 07.12.2014

on server.cfg type: ackslimit 5000


Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Unyx - 07.12.2014

322.0.0.9

that IP so pretty and crazy


Respuesta: Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - kgbayala528 - 07.12.2014

Quote:
Originally Posted by Unyx
Посмотреть сообщение
322.0.0.9

that IP so pretty and crazy
lol


Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Vince - 07.12.2014

Your script is faulty somewhere. Raising the ackslimit isn't a solution to the problem at hand because that message shouldn't appear in the first place. By default it is impossible to kill an NPC so check the documentation for whatever plugin you are using.


Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Supermaxultraswag - 07.12.2014

Quote:
Originally Posted by kgbayala528
Посмотреть сообщение
on server.cfg type: ackslimit 5000
Guy below said that this isnt a solution.

Quote:
Originally Posted by Unyx
Посмотреть сообщение
322.0.0.9

that IP so pretty and crazy
thats because of swag

Quote:
Originally Posted by Vince
Посмотреть сообщение
Your script is faulty somewhere. Raising the ackslimit isn't a solution to the problem at hand because that message shouldn't appear in the first place. By default it is impossible to kill an NPC so check the documentation for whatever plugin you are using.
Im using FCNPC plugin. Heres my code :

Код HTML:
public FCNPC_OnDeath(npcid, killerid, weaponid)
{
FCNPC_Kill(npcid);
return 1;
}



Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - PowerPC603 - 07.12.2014

You're getting that message because your server is sending over 3000 messages per second to the client or vice versa.
Every message needs an acknowledge (response) to be sure it got delivered.

Somewhere in your script, you're using a massive loop to get/set data on the client with over 3000 messages (actually it's 6882 messages while 3000 is the limit).
Your script is the problem, not the server.

Increasing the limit is not good practice.


Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Vince - 07.12.2014

Yeah well, if that Kill statement calls the OnDeath callback then you've got yourself a nice little infinite loop!


Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec - Supermaxultraswag - 07.12.2014

Could you guys fix the code for me? :/ Im not rly good at pawn.


Heres full code :

public FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart)
{
new Float:HP = FCNPC_GetHealth(npcid);
if(weaponid == 34) FCNPC_SetHealth(npcid, HP-120) ; // Sniper
return 1;
}

public FCNPC_OnDeath(npcid, killerid, weaponid)
{
FCNPC_Kill(npcid);
return 1;
}