SA-MP Forums Archive
Debug Error help Array index out of bounds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Debug Error help Array index out of bounds (/showthread.php?tid=533087)



Debug Error help Array index out of bounds - SPA - 22.08.2014

Hello im using House system: https://sampforum.blast.hk/showthread.php?tid=321388 , when i run it i got that:
Код:
[04:16:02]+ Incoming connection: 192.168.1.102:58489
[04:16:32]+ Incoming connection: 192.168.1.102:58491
[04:16:32]+ [join] Mahdi has joined the server (0:192.168.1.102)
[04:17:08]+ [debug] Run time error 4: "Array index out of bounds"
[04:17:08]+ [debug]  Accessing element at negative index -1
[04:17:08]+ [debug] AMX backtrace:
[04:17:08]+ [debug] #0 0003b1a8 in public @_yCbuyhouse (playerid=0, params[]=@0x011183ec "", help=0) at C:\Users\MaHdy\Desktop\SPA Orginal Build 2\filterscripts\House_System.pwn:1607
[04:17:08]+ [debug] #1 0003b030 in public @yC_buyhouse (a=0, b[]=@0x011183ec "", c=0, i=0) at C:\Users\MaHdy\Desktop\SPA Orginal Build 2\filterscripts\House_System.pwn:1600
[04:17:08]+ [debug] #2 native CallRemoteFunction () [00472720] from samp-server.exe
[04:17:08]+ [debug] #3 00026ee0 in Command_Process (playerid=0, cmdtext[]=@0x011183c4 "/buyhouse", help=0) at C:\Users\MaHdy\Desktop\SPA Orginal Build 2\pawno\include\YSI\y_commands.inc:2503
[04:17:08]+ [debug] #4 0002662c in ?? (... <2 arguments>) at C:\Users\MaHdy\Desktop\SPA Orginal Build 2\pawno\include\YSI\y_commands.inc:2322
[04:17:08]+ [debug] #5 0000f624 in public OnPlayerCommandText (playerid=0, cmdtext[]=@0x011183c4 "/buyhouse") at C:\Users\MaHdy\Desktop\SPA Orginal Build 2\pawno\include\YSI\y_hooks/impl.inc:929



Re: Debug Error help Array index out of bounds - ball - 22.08.2014

Show line 1600 - 1607 from house system. You use -1 in some array.