Help Please , REPS+
#1

I got that from crashdetect:
Код:
[13:55:03]+ [debug] Run time error 4: "Array index out of bounds"
[13:55:03]+ [debug]  Accessing element at negative index -1
[13:55:03]+ [debug] AMX backtrace:
[13:55:03]+ [debug] #0 000163b8 in INI_Close (INI:file=-1) at C:\Users\MaHdy\Desktop\SPA Server original\pawno\include\YSI\y_ini.inc:746
[13:55:03]+ [debug] #1 000271d0 in ?? (... <5 arguments>) at C:\Users\MaHdy\Desktop\SPA Server original\filterscripts\GarHouse.pwn:1061
[13:55:03]+ [debug] #2 0001047c in public OnDialogResponse (playerid=12, dialogid=21715, response=1, listitem=8, inputtext[]=@0x01081304 "9.") at C:\Users\MaHdy\Desktop\SPA Server original\pawno\include\YSI\y_hooks/impl.inc:2251
Reply
#2

You are closing (probably) already closed handle.
Reply
#3

The code.
The problem is the value that you put inside [ ] is invalid.

For example you created an array or a string with 10 character.
new array[10];

but your are trying to access an non-esisting element
array[15]; //this will give array index out of bounds error

NOTE:THe first element will be 0 not 1.And the last element will be the number that you put while declaring the array minus one.
In my example the first entry is array[0] and the last entry is [9]
array[10] is wrong.
Reply
#4

Thanks for replying but how to fix i dont know whats is the main problem come from
Reply
#5

show your code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)