Server Crash
#1

Hello…

Im using my new gamemode from 0. Now, i added hotel system and Im getting this error in server_log, after i click "Login" on textdraw, my game freezes, and server shuts down.. In hotel system, i wasnt adding anything to onplayerclickplayertextdraw..

Pastebin code : https://pastebin.com/uiujhK58


Without crashdetect , server gives me this error:
[warning] client exceeded 'ackslimit' 127.5.6.0 (5095) Limit: 3000/sec

I add ackslimit 5100 to server.cfg, but the problem is still here.
Reply
#2

Show us your code please? I promise we'll not steal it.
Reply
#3

Show the whole public OnPlayerClickPlayerTextDraw code.
Reply
#4

https://pastebin.com/ejXHn8pv
Reply
#5

Bump
Its not it…

Now it gives me error: [warning] player exceeded ackslimit (5082) …..
Reply
#6

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.
Reply
#7

i disable whole onplayerkeystatechange, and its the same thing.
Server log:
19:32:38] [debug] #0 001a9688 in public OnPlayerClickPlayerTextDraw () at C:\Users\kita\Desktop\future of balkan\gamemodes\fob_script.pwn:3876

Line 3876:
Код:
stock pName(playerid) 
{ 
new name[MAX_PLAYER_NAME]; 
GetPlayerName(playerid,name,sizeof(name)); 
return name; 
}
Reply
#8

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.
Reply
#9

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...
Reply
#10

Код:
[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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)