Server crash problem
#1

when i start the server and get into the game while im typing the password my server crashes and this is what i get
pawn Код:
[02:16:12] [debug] Run time error 4: "Array index out of bounds"
[02:16:12] [debug]  Accessing element at index 4 past array upper bound 3
[02:16:12] [debug] AMX backtrace:
[02:16:12] [debug] #0 00094470 in public PingKick () from punAdmin.amx
[02:16:26] Incoming connection: **** //ip i wont show
[02:16:26] [join] test has joined the server (0:***.**.*.*)//same
[02:16:26] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[02:16:26] [debug]  Stack pointer (STK) is 0x112074C, heap pointer (HEA) is 0x112071C
[02:16:26] [debug] AMX backtrace:
[02:16:26] [debug] #0 00096594 in ?? () from lscnr.amx
[02:16:26] [debug] #1 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #2 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #3 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #4 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #5 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #6 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #7 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #8 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #9 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #10 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #11 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #12 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #13 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #14 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #15 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #16 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #17 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #18 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #19 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #20 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #21 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #22 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #23 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #24 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #25 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #26 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #27 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #28 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #29 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #30 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #31 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #32 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #33 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #34 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #35 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #36 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #37 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #38 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #39 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #40 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #41 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #42 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #43 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #44 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #45 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #46 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #47 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #48 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #49 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #50 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #51 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #52 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #53 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #54 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #55 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #56 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #57 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #58 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #59 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #60 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #61 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #62 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #63 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #64 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #65 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #66 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #67 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #68 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #69 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #70 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #71 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #72 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #73 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #74 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #75 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #76 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #77 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #78 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #79 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #80 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #81 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #82 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #83 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #84 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #85 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #86 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #87 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #88 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #89 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #90 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #91 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #92 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #93 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #94 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #95 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #96 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #97 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #98 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #99 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #100 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #101 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #102 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #103 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #104 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #105 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #106 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #107 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #108 000965b4 in ?? () from lscnr.amx
[02:16:26] [debug] #109 000965b4 in ?? () from lscnr.amx
[02:16:27] [debug] #981 0004d5bc in public Audio_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #982 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #983 0001eb34 in public RL_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #984 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #985 0001cfa8 in ?? () from lscnr.amx
[02:16:27] [debug] #986 0001a140 in public Streamer_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #987 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #988 00019630 in ?? () from lscnr.amx
[02:16:27] [debug] #989 0000e2f8 in public SSCANF_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #990 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #991 00000e20 in public OnPlayerConnect () from lscnr.amx
[02:16:27] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<?>.
[02:16:27] sscanf warning: Strings without a length are deprecated, please add a destination size.
[02:16:27] sscanf warning: String buffer overflow.
any idea what can i do about it
Reply
#2

Show us your code from the login dialog.
Reply
#3

Quote:
Originally Posted by dominik523
Посмотреть сообщение
Show us your code from the login dialog.
Why from the login section?

This is crashing as soon as the connection is made.
Reply
#4

Well, you said "typing the password my server" so that's why I said login section.
If you think something is bad from OnPlayerConnect, than put that code here.
Reply
#5

Quote:
Originally Posted by dominik523
Посмотреть сообщение
Well, you said "typing the password my server" so that's why I said login section.
If you think something is bad from OnPlayerConnect, than put that code here.
I think it's just the OnPlayerConnect callback.


Код:
[02:16:27] [debug] #981 0004d5bc in public Audio_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #982 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #983 0001eb34 in public RL_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #984 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #985 0001cfa8 in ?? () from lscnr.amx
[02:16:27] [debug] #986 0001a140 in public Streamer_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #987 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #988 00019630 in ?? () from lscnr.amx
[02:16:27] [debug] #989 0000e2f8 in public SSCANF_OnPlayerConnect () from lscnr.amx
[02:16:27] [debug] #990 native CallLocalFunction () [00472fc0] from samp-server.exe
[02:16:27] [debug] #991 00000e20 in public OnPlayerConnect () from lscnr.amx
[02:16:27] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<?>.
[02:16:27] sscanf warning: Strings without a length are deprecated, please add a destination size.
[02:16:27] sscanf warning: String buffer overflow.
My guess is that either something with the plugins isn't right(Outdated maybe?), or you did something wrong with sscanf (Last 3 lines).
Reply
#6

sscanf plguins and stream different of include
Reply
#7

Can you please show us any SSCANF line you have on the OnPlayerConnect / under the dialogs showing up there?

There might be an issue where you did use the sscanf wrongly, which caused it to go out of bounds.
Reply
#8

now im getting new errors i have updated everything plugins etc...
now i can login without crashing but im getting this spam on serverlogs
pawn Код:
[12:51:00] [join] iThe_Punisher has joined the server (0:192.168.1.161)
[12:51:01] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[12:51:01] [debug]  Stack pointer (STK) is 0x1120FF4, heap pointer (HEA) is 0x1120FC4
[12:51:01] [debug] AMX backtrace:
[12:51:01] [debug] #0 000915f0 in ?? () from lscnr.amx
[12:51:01] [debug] #1 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #2 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #3 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #4 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #5 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #6 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #7 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #8 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #9 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #10 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #11 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #12 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #13 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #14 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #15 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #16 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #17 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #18 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #19 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #20 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #21 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #22 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #23 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #24 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #25 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #26 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #27 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #28 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #29 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #30 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #31 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #32 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #33 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #34 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #35 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #36 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #37 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #38 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #39 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #40 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #41 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #42 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #43 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #44 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #45 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #46 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #47 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #48 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #49 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #50 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #51 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #52 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #53 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #54 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #55 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #56 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #57 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #58 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #59 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #60 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #61 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #62 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #63 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #64 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #65 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #66 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #67 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #68 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #69 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #70 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #71 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #72 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #73 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #74 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #75 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #76 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #77 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #78 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #79 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #80 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #81 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #82 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #83 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #84 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #85 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #86 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #87 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #88 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #89 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #90 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #91 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #92 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #93 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #94 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #95 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #96 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #97 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #98 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #99 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #100 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #101 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #102 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #103 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #104 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #105 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #106 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #107 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #108 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #109 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #110 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #111 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #112 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #113 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #114 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #115 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #116 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #117 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #118 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #119 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #120 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #121 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #122 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #123 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #124 00091610 in ?? () from lscnr.amx
[12:51:01] [debug] #984 000478d8 in public RL_OnPlayerConnect () from lscnr.amx
[12:51:01] [debug] #985 native CallLocalFunction () [00472fc0] from samp-server.exe
[12:51:01] [debug] #986 0001b1e0 in public Itter_OnPlayerConnect () from lscnr.amx
[12:51:01] [debug] #987 native CallLocalFunction () [00472fc0] from samp-server.exe
[12:51:01] [debug] #988 00019188 in ?? () from lscnr.amx
[12:51:01] [debug] #989 0000e0b8 in public SSCANF_OnPlayerConnect () from lscnr.amx
[12:51:01] [debug] #990 native CallLocalFunction () [00472fc0] from samp-server.exe
[12:51:01] [debug] #991 00000e20 in public OnPlayerConnect () from lscnr.amx
[12:51:01] [SAMP-BANS]: Encountered an error, the page didn't respond
[12:51:11] [SPAWN] iThe_Punisher (0)
[12:52:09] [debug] Run time error 4: "Array index out of bounds"
[12:52:09] [debug]  Accessing element at index 999 past array upper bound 2
[12:52:09] [debug] AMX backtrace:
[12:52:09] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:52:09] [debug] #1 00055488 in ?? () from lscnr.amx
[12:52:09] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:52:29] [debug] Run time error 4: "Array index out of bounds"
[12:52:29] [debug]  Accessing element at index 999 past array upper bound 2
[12:52:29] [debug] AMX backtrace:
[12:52:29] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:52:29] [debug] #1 00055488 in ?? () from lscnr.amx
[12:52:29] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:53:03] [debug] Run time error 4: "Array index out of bounds"
[12:53:03] [debug]  Accessing element at index 999 past array upper bound 2
[12:53:03] [debug] AMX backtrace:
[12:53:03] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:53:03] [debug] #1 00055488 in ?? () from lscnr.amx
[12:53:03] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:53:20] [debug] Run time error 4: "Array index out of bounds"
[12:53:20] [debug]  Accessing element at index 999 past array upper bound 2
[12:53:20] [debug] AMX backtrace:
[12:53:20] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:53:20] [debug] #1 00055488 in ?? () from lscnr.amx
[12:53:20] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:54:42] [debug] Run time error 4: "Array index out of bounds"
[12:54:42] [debug]  Accessing element at index 999 past array upper bound 2
[12:54:42] [debug] AMX backtrace:
[12:54:42] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:54:42] [debug] #1 00055488 in ?? () from lscnr.amx
[12:54:42] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:54:48] (null)
[12:55:09] [debug] Run time error 4: "Array index out of bounds"
[12:55:09] [debug]  Accessing element at index 999 past array upper bound 2
[12:55:09] [debug] AMX backtrace:
[12:55:09] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:55:09] [debug] #1 00055488 in ?? () from lscnr.amx
[12:55:09] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:55:36] [debug] Run time error 4: "Array index out of bounds"
[12:55:36] [debug]  Accessing element at index 999 past array upper bound 2
[12:55:36] [debug] AMX backtrace:
[12:55:36] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:55:36] [debug] #1 00055488 in ?? () from lscnr.amx
[12:55:36] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:55:41] [debug] Run time error 4: "Array index out of bounds"
[12:55:41] [debug]  Accessing element at index 999 past array upper bound 2
[12:55:41] [debug] AMX backtrace:
[12:55:41] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:55:41] [debug] #1 00055488 in ?? () from lscnr.amx
[12:55:41] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:55:43] [debug] Run time error 4: "Array index out of bounds"
[12:55:43] [debug]  Accessing element at index 999 past array upper bound 2
[12:55:43] [debug] AMX backtrace:
[12:55:43] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:55:43] [debug] #1 00055488 in ?? () from lscnr.amx
[12:55:43] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:56:01] [debug] Run time error 4: "Array index out of bounds"
[12:56:01] [debug]  Accessing element at index 999 past array upper bound 2
[12:56:01] [debug] AMX backtrace:
[12:56:01] [debug] #0 00092b9c in ?? () from lscnr.amx
[12:56:01] [debug] #1 00055488 in ?? () from lscnr.amx
[12:56:01] [debug] #2 0000f11c in public OnPlayerEnterCheckpoint () from lscnr.amx
[12:57:13] [debug] Run time error 4: "Array index out of bounds"
[12:57:13] [debug]  Accessing element at index 65535 past array upper bound 499
[12:57:13] [debug] AMX backtrace:
[12:57:13] [debug] #0 000180b0 in public OnPlayerDeath () from punAdmin.amx
[12:57:13] [debug] Run time error 4: "Array index out of bounds"
[12:57:13] [debug]  Accessing element at index 65535 past array upper bound 499
[12:57:13] [debug] AMX backtrace:
[12:57:13] [debug] #0 0004c468 in ?? () from lscnr.amx
[12:57:13] [debug] #1 0000e4d8 in public OnPlayerDeath () from lscnr.amx
[12:57:17] [SPAWN] iThe_Punisher (0)
[12:59:25] [SPAWN] iThe_Punisher (0)
[12:59:43] [debug] Run time error 4: "Array index out of bounds"
[12:59:43] [debug]  Accessing element at index 65535 past array upper bound 499
[12:59:43] [debug] AMX backtrace:
[12:59:43] [debug] #0 000180b0 in public OnPlayerDeath () from punAdmin.amx
[12:59:43] [debug] Run time error 4: "Array index out of bounds"
[12:59:43] [debug]  Accessing element at index 65535 past array upper bound 499
[12:59:43] [debug] AMX backtrace:
[12:59:43] [debug] #0 0004c468 in ?? () from lscnr.amx
[12:59:43] [debug] #1 0000e4d8 in public OnPlayerDeath () from lscnr.amx
[12:59:49] [SPAWN] iThe_Punisher (0)
[13:00:42] [part] iThe_Punisher has left the server (0:1)
removed many
pawn Код:
00091610 in ?? () from lscnr.amx
because doesnt allows me to post
Reply
#9

Quote:
Originally Posted by iThePunisher
[12:52:09] [debug] Run time error 4: "Array index out of bounds"
[12:52:09] [debug] Accessing element at index 999 past array upper bound 2
the server crashes due to that.
this can be caused by something like this
pawn Код:
new vect[5];//0 - 4
for(new i=0; i<6; i++)//throws an out of bounds error during crash detect scan
        printf("%d",vect[i]);//cuz vect's boundaries are ranging from 0 to 4 (not 5)
        //it'll loop 0 to 5 until it crashes at i = 5 if we say i<6
//it'll be like: print, print, print, print, print, CRASHHHHH
now these things cannot be detected during compilation.
pawncc won't run loops to check if theyre allright.

but on the other hand, something like this
pawn Код:
new vect[5];
new x = vect[5];
will be detected during compilation cuz the compiler
knows the boundaries of vect are from 0 to 4 after "new vect[5]".
So if it's scanning something like "new x = vect[5]", itll look up
the boundaries of "vect" in the pool and "barks" if its out of range.

you'd get this error message
Код:
error 32: array index out of bounds (variable "vect")
what you must do is check your script for "bad" loops,
which could cause the accessing of an invalid element as described above.
Reply
#10

Just a correction;

pawn Код:
new vect[5];//0 - 4
for(new i=0; i<6; i++)//throws an out of bounds error during crash detect scan
        printf("%d",vect[i]);//cuz vect's boundaries are ranging from 0 to 4 (not 5)
        //it'll loop 0 to 5 if we say i<6
//it'll be like: print, print, print, print, print, CRASHHHHH
That code will not count from 0 - 5, it will count from 0 - 6. imagine if i = 5, it will add one more (because i is still lower than 6). Next time it checks, i = 6 and it is not the same as i < 6 and will stop.


@Threadstarter: Can you please show onplayerconnect? Can you show us what we need in order to help you with the issue? Or at least try out what we tell you?
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)