Tadas3333 / SAMPAttackDefend

"Att-Def v1.21" - Forked version of @khalidahmedshalabi SA-MP BulletProof AAD gamemode. Includes new textures, features and bug fixes.
Apache License 2.0
11 stars 4 forks source link

Array out of bounds #15

Closed Tadas3333 closed 7 years ago

Tadas3333 commented 7 years ago

Found these in the logs:

[21:09:01] [debug] Run time error 4: "Array index out of bounds" [21:09:01] [debug] Attempted to read/write array element at index 55 in array of size 50 [21:09:01] [debug] AMX backtrace: [21:09:01] [debug] #0 00125cb4 in ?? (... <3 arguments>) at C:\Users\xx\Documents\GitHub\SAMPAttackDefend\gamemodes\attdef.pwn:7121 [21:09:01] [debug] #1 00046e4c in Command_ReProcess (p=0, c[]=@00154cfc "/fakepacket 55 5", h=0) at C:\Users\xx\Documents\GitHub\SAMPAttackDefend\pawno\include\YSI_inc\YSI..\YSI_Visual\y_commands/impl.inc:582 [21:09:01] [debug] #2 00047558 in ?? (playerid=0, cmdtext[]=@00154cfc "/fakepacket 55 5", ... <1073741821 arguments>) at C:\Users\xx\Documents\GitHub\SAMPAttackDefend\pawno\include\YSI_inc\YSI..\YSI_Visual\y_commands/impl.inc:1337 [21:09:01] [debug] #3 00018c10 in public OnPlayerCommandText (... <2 arguments>) at C:\Users\xx\Documents\GitHub\SAMPAttackDefend\pawno\include\YSI_inc\YSI..\YSI_Coding..\YSI_Internal\y_cgen.inc:30

[15:44:00] [debug] Run time error 4: "Array index out of bounds" [15:44:00] [debug] Attempted to read/write array element at index 255 in array of size 55 [15:44:00] [debug] AMX backtrace: [15:44:00] [debug] #0 000e6850 in public ServerOnPlayerDeath (playerid=7, killerid=65535, reason=255) at C:\Users\xx\Documents\GitHub\SAMPAttackDefend\gamemodes\attdef.pwn:521 [15:44:00] [debug] #1 000e6464 in public OnPlayerDeath (playerid=7, killerid=65535, reason=255) at C:\Users\xx\Documents\GitHub\SAMPAttackDefend\gamemodes\attdef.pwn:496