View Single Post
Old 05/06/2020, 02:49 AM   #12
ToiletDuck
Huge Clucker
 
ToiletDuck's Avatar
 
Join Date: Apr 2012
Location: Philippines, Lucena City
Posts: 400
Reputation: 43
Default Re: NDIALOG-PAGES - Split dialog lists into multiple pages!

Quote:
Originally Posted by Nickk888 View Post
I have probably fixed that error in my code, please consider redownloading the include from the github page!
> Did you negate the listitem before using the index in your script? Looks like you didn't do that so even though you press the Next and Back button, it will still call OnDialogResponse using -2 as the listitem. I have changed the Value inside the include so give it a try, check if you negate the dialog! Look at the example script i provided.

Hi still I downloaded your latest the error still occurs. Whenever I press Next or Prev.

Code:
[09:18:12] [debug]
[09:18:12] [debug] Parameter count corrections:
[09:18:12] [debug]
[09:18:12] [debug] The 1st mangled argments (e.g. `<1073741823 arguments>`) below should read `<5 arguments>`
[09:18:12] [debug]
[09:18:12] [debug] Run time error 4: "Array index out of bounds"
[09:18:12] [debug]  Attempted to read/write array element at index 65535 in array of size 50
[09:18:12] [debug] AMX backtrace:
[09:18:12] [debug] #0 006f791c in OnDialogResponse (playerid=0, dialogid=6182, response=1, listitem=65535, inputtext[]=@1e9ff5d0 ">>>") at ./includes/OnDialogResponse.pwn:3233
[09:18:12] [debug] #1 0001789c in public OnDialogResponse (0, 6182, 1, 10, 513799632) at D:\05_Desktop\EGRP-master\pawno\include\YSI_Coding\y_timers\..\..\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\y_cgen.inc:127
[09:18:13] [debug]
[09:18:13] [debug] Parameter count corrections:
[09:18:13] [debug]
[09:18:13] [debug] The 1st mangled argments (e.g. `<1073741823 arguments>`) below should read `<5 arguments>`
[09:18:13] [debug]
[09:18:13] [debug] Run time error 4: "Array index out of bounds"
[09:18:13] [debug]  Attempted to read/write array element at index 65535 in array of size 50
[09:18:13] [debug] AMX backtrace:
[09:18:13] [debug] #0 006f791c in OnDialogResponse (playerid=0, dialogid=6182, response=1, listitem=65535, inputtext[]=@1e9ff5d0 "<<<") at ./includes/OnDialogResponse.pwn:3233
[09:18:13] [debug] #1 0001789c in public OnDialogResponse (0, 6182, 1, 8, 513799632) at D:\05_Desktop\EGRP-master\pawno\include\YSI_Coding\y_timers\..\..\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\y_cgen.inc:127
ToiletDuck is offline   Reply With Quote