SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/12/2019, 06:30 PM   #1
NoteND
Huge Clucker
 
Join Date: May 2016
Posts: 214
Reputation: 3
Default Ackslimit

Simple question.. how to avoid ackslimit? I do not see anywhere in my script that I'd be using too big of a loop etc. that would trigger the warning im getting.. ackslimit (3024) and (4020) for example..

got

Code:
#undef MAX_PLAYERS
#define MAX_PLAYERS 32
and using foreach to loop through players.

Code:
foreach(Player, i)
NoteND is offline   Reply With Quote
Old 24/12/2019, 07:11 PM   #2
Calisthenics
Gangsta
 
Join Date: May 2018
Posts: 958
Reputation: 167
Default Re: Ackslimit

Once I received the same ackslimit warning while I was testing. Checking chatlog.txt to see what activity you were doing might help to know where to start looking.

Unrelated to your problem but the foreach syntax you use is deprecated. Use the new syntax instead:
pawn Code:
foreach(new i : Player)
__________________
Calisthenics is offline   Reply With Quote
Old 25/12/2019, 07:39 AM   #3
NoteND
Huge Clucker
 
Join Date: May 2016
Posts: 214
Reputation: 3
Default Re: Ackslimit

Quote:
Originally Posted by Calisthenics View Post
Once I received the same ackslimit warning while I was testing. Checking chatlog.txt to see what activity you were doing might help to know where to start looking.

Unrelated to your problem but the foreach syntax you use is deprecated. Use the new syntax instead:
pawn Code:
foreach(new i : Player)
Okay, but I asked how to avoid it in general..

bump.

Last edited by NoteND; 25/12/2019 at 09:56 AM.
NoteND is offline   Reply With Quote
Old 30/12/2019, 10:40 PM   #4
Beckett
High-roller
 
Beckett's Avatar
 
Join Date: Feb 2012
Location: www.finalnights-rp.com
Posts: 1,773
Reputation: 104
Default Re: Ackslimit

Watch your gamemode performance and debug what's happening. See when it is sending you the warning, and compare it to what is the gamemode doing at the time. Then you'll realize what's causing this influx.
Beckett is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ackslimit SpikeSpigel Scripting Help 2 28/06/2015 07:08 PM
ackslimit -... SpikeSpigel Scripting Help 10 25/06/2015 02:10 PM
Ackslimit Antoniohl Scripting Help 6 27/04/2015 11:06 AM
ackslimit RuNBoY Client Support 4 28/01/2015 02:37 PM


All times are GMT. The time now is 05:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.