Posts: 716
Threads: 92
Joined: May 2018
Show us your code please? I promise we'll not steal it.
Posts: 357
Threads: 6
Joined: Feb 2018
Show the whole public OnPlayerClickPlayerTextDraw code.
Posts: 28
Threads: 10
Joined: Aug 2013
Reputation:
0
Bump
Its not it…
Now it gives me error: [warning] player exceeded ackslimit (5082) …..
Posts: 6,242
Threads: 8
Joined: Jun 2008
Changing ackslimits may suppress the symptom, but it won't fix the issue.
If you've done a lot of OnPlayerKeyStateChange checks, then I'd have a look at that first.
Posts: 6,242
Threads: 8
Joined: Jun 2008
I didn't say to disable it, I asked if you had... This could also be said the same for OnPlayerUpdate, and many of those events that are constantly updated.
It can be because there are so many requests to the client, and creation of traffic, that it's causing this. That's why I brought up OnPlayerKeyStateChange as usually, when this comes up, people have put in massive amounts of code in, but haven't been looking at how heavy that load of code will be.
As for that error, are you actually using a clickable text draw? Is it just you on the server (Just to know no-one else had clicked a textdraw)?
And if you are going to use CrashDetect, be sure to use -d3 in the compiler options, otherwise it returns literal garbage.
Try recompile with that option, and try get it back to where it was crashing, without that ackslimit message. Maybe an actual return from crashdetect may shed some more light on this issue.
Posts: 28
Threads: 10
Joined: Aug 2013
Reputation:
0
This is with -d3, and crashdeect... When I delete this code pName, it gives me error in debug on other line, i delete that line and then gives me on the other , from stock pName, to code which is under it are errors, i would said like “random” errors...
Posts: 6,242
Threads: 8
Joined: Jun 2008
Код:
[20:50:09] [debug] #0 00149008 in public OnPlayerClickPlayerTextDraw () from fob_script.amx
[20:50:09] [debug] Native backtrace:
[20:50:09] [debug] #0 5d17b1b9 in ?? () from plugins\crashdetect.DLL
[20:50:09] [debug] #1 5d17d6a7 in ?? () from plugins\crashdetect.DLL
[20:50:09] [debug] #2 5d183159 in ?? () from plugins\crashdetect.DLL
[20:50:09] [debug] #3 5d183336 in ?? () from plugins\crashdetect.DLL
[20:50:09] [debug] #4 5d17a767 in ?? () from plugins\crashdetect.DLL
[20:50:09] [debug] #5 5d17d65a in ?? () from plugins\crashdetect.DLL
[20:50:09] [debug] #6 5b714219 in ?? () from plugins\SART.DLL
[20:50:09] [debug] #7 0019fa01 in ?? ()
Then if you're using -d3, then this shouldn't be coming up all garbled. Have you got everything that it needs, in terms of runtimes or something?
Maybe have you messed up with terms of closing braces or something else script wise around/before the pName code? (In respect of you removing pName and the error changing)