Urgently need help, all server functions just stopped working
#1

I have a SA:MP server that has been working fine, hosted on a linux VPS. All of the sudden out of absolute NOWHERE, the server stops working correctly. Every command executes, but is also followed by the unknown command message. I also get this in the server.log:

Код:
[22:38:40] [chat] [Bob_Sacamano]: test test
[22:38:40] [debug] Run time error 4: "Array index out of bounds"
[22:38:40] [debug]  Attempted to read/write array element at index 12 in array of size 12
[22:38:40] [debug] AMX backtrace:
[22:38:40] [debug] #0 001463f0 in ?? (40, 2) from RP.amx
[22:38:40] [debug] #1 0001e220 in ?? (43341208) from RP.amx
[22:38:40] [debug] #2 0009f864 in ?? (0, 27341776) from RP.amx
[22:38:40] [debug] #3 00013204 in public OnPlayerText (0, 27341776) from RP.amx
[22:38:44] [system] Group 3 saved.
[22:38:48] [chat] [Bob_Sacamano]: test test
[22:38:48] [debug] Run time error 4: "Array index out of bounds"
[22:38:48] [debug]  Attempted to read/write array element at index 12 in array of size 12
[22:38:48] [debug] AMX backtrace:
[22:38:48] [debug] #0 001463f0 in ?? (48, 2) from RP.amx
[22:38:48] [debug] #1 0001e220 in ?? (43341208) from RP.amx
[22:38:48] [debug] #2 0009f864 in ?? (0, 27341776) from RP.amx
[22:38:48] [debug] #3 00013204 in public OnPlayerText (0, 27341776) from RP.amx
[22:38:55] [command] Bob_Sacamano (0) executes: /gmx
[22:38:55] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[22:38:55] sscanf warning: No default value found.
[22:38:55] sscanf warning: Format specifier does not match parameter count.
[22:38:55] [debug] Run time error 4: "Array index out of bounds"
[22:38:55] [debug]  Attempted to read/write array element at index 12 in array of size 12
[22:38:55] [debug] AMX backtrace:
[22:38:55] [debug] #0 001463f0 in ?? (55, 2) from RP.amx
[22:38:55] [debug] #1 0001dd58 in ?? (43339512) from RP.amx
[22:38:55] [debug] #2 0005938c in public GMXPrep (0, 43341068) from RP.amx
[22:38:55] [debug] #3 0012b4a0 in public cmd_gmx (0, 27341796) from RP.amx
[22:38:55] [debug] #4 native CallLocalFunction () from samp03svr
[22:38:55] [debug] #5 00006460 in public OnPlayerCommandText (0, 27341776) from RP.amx
[22:39:01] [command] Bob_Sacamano (0) executes: /n Hello
[22:39:01] [debug] Run time error 4: "Array index out of bounds"
[22:39:01] [debug]  Attempted to read/write array element at index 12 in array of size 12
[22:39:01] [debug] AMX backtrace:
[22:39:01] [debug] #0 001463f0 in ?? (1, 2) from RP.amx
[22:39:01] [debug] #1 0001d9d8 in ?? (43341048) from RP.amx
[22:39:01] [debug] #2 000c1524 in public cmd_newbie (0, 27341812) from RP.amx
[22:39:01] [debug] #3 000c1920 in public cmd_n (0, 27341812) from RP.amx
[22:39:01] [debug] #4 native CallLocalFunction () from samp03svr
[22:39:01] [debug] #5 00006564 in public OnPlayerCommandText (0, 27341776) from RP.amx
i have zcmd, and my plugins are crashdetector, nativechecker, sscanf, streamer, and whirlpool. again, the server is on linux. Please help
Reply
#2

Hey, this happend to me 3 days ago and it was a simple mistake.
Listen, do you have something like string[9000] or another high value in the strings? Of these commands.
Cuz it kills the server ram and make the commands not works
Reply
#3

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
Hey, this happend to me 3 days ago and it was a simple mistake.
Listen, do you have something like string[9000] or another high value in the strings? Of these commands.
Cuz it kills the server ram and make the commands not works
string[9000], what the fuck?
Reply
#4

Quote:
Originally Posted by cuber
Посмотреть сообщение
string[9000], what the fuck?
Yea, i did that yesterday xD my server ram was crying lmao
Reply
#5

thanks. i had one string that was about 1000 that my dev didn’t tell me he changed. is there a way to make a long string like over 256 that doesn’t kill the server?
Reply
#6

You seem to have very little clue as to what you're doing.

Recompile your gamemode with the -d3 flag to get a proper stack trace. Post your log with the proper stack trace here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)