What's the problem?
#1

Hello, my server seems to work fine but I get this in the console always and I wonder what is it and what is the problem with it?
Код:
[10:43:05] [debug] Run time error 4: "Array index out of bounds"
[10:43:05] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:05] [debug] AMX backtrace:
[10:43:05] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033) from MyGM.amx
[10:43:05] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from MyGM.amx
[10:43:09] [debug] Run time error 4: "Array index out of bounds"
[10:43:09] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:09] [debug] AMX backtrace:
[10:43:09] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033) from MyGM.amx
[10:43:09] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from MyGM.amx
[10:43:10] [debug] Run time error 4: "Array index out of bounds"
[10:43:10] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:10] [debug] AMX backtrace:
[10:43:10] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033) from MyGM.amx
[10:43:10] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from MyGM.amx
[10:43:10] [debug] Run time error 4: "Array index out of bounds"
[10:43:10] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:10] [debug] AMX backtrace:
[10:43:10] [debug] #0 0005e5d4 in ?? (0x00000000, 0x0000ffff, 0x000000ff) from MyGM.amx
[10:43:10] [debug] #1 00010b5c in public OnPlayerDeath (0x00000000, 0x0000ffff, 0x000000ff) from MyGM.amx
[10:43:10] [death] Firas died 255
[10:43:10] [debug] Run time error 4: "Array index out of bounds"
[10:43:10] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:10] [debug] AMX backtrace:
[10:43:10] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x40533334, 0x00000036) from MyGM.amx
[10:43:10] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x40533334, 0x00000036, 0x00000003) from MyGM.amx
[10:43:19] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:43:26] [debug] Run time error 4: "Array index out of bounds"
[10:43:26] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:26] [debug] AMX backtrace:
[10:43:26] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033) from MyGM.amx
[10:43:26] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from MyGM.amx
[10:43:26] [debug] Run time error 4: "Array index out of bounds"
[10:43:26] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:26] [debug] AMX backtrace:
[10:43:26] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033) from MyGM.amx
[10:43:26] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from MyGM.amx
[10:43:37] [debug] Run time error 4: "Array index out of bounds"
[10:43:37] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:37] [debug] AMX backtrace:
[10:43:37] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033) from MyGM.amx
[10:43:37] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from MyGM.amx
[10:43:37] [debug] Run time error 4: "Array index out of bounds"
[10:43:37] [debug]  Accessing element at index 65535 past array upper bound 499
[10:43:37] [debug] AMX backtrace:
[10:43:37] [debug] #0 000f012c in ?? (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033) from MyGM.amx
[10:43:37] [debug] #1 00013cf8 in public OnPlayerTakeDamage (0x00000000, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from MyGM.amx
Reply
#2

The problem is that you do not check if issuerid is a valid player before using it in arrays and that causes the run time error 4.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)