Help Please , REPS+ - 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: Help Please , REPS+ (
/showthread.php?tid=490375)
Help Please , REPS+ -
MahdiGames - 26.01.2014
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
Re: Help Please , REPS+ -
Scottas - 26.01.2014
You are closing (probably) already closed handle.
Re: Help Please , REPS+ -
Yashas - 26.01.2014
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.
Re: Help Please , REPS+ -
MahdiGames - 26.01.2014
Thanks for replying but how to fix i dont know whats is the main problem come from
Re: Help Please , REPS+ -
Yashas - 26.01.2014
show your code.