SA-MP Forums Archive
What's the problem? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: What's the problem? (/showthread.php?tid=516236)



What's the problem? - iFiras - 30.05.2014

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



Re: What's the problem? - Konstantinos - 30.05.2014

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.