Crashdetect Array Index out of bounds.
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
listitem is -1. What's the line 605?

Before using listitem inside [] in the array HelpMeListItem, you should check if the value is not out of bounds.
pawn Код:
if (0 <= listitem < 25)
{
    // you can use listitem in HelpMeListItem with safety here
}
I managed to fix it by storing listitem from PREVIOUS dialog into an array, so it can be carried over to DIALOG_STYLE_MSGBOX response...
Reply


Messages In This Thread
Crashdetect Array Index out of bounds. - by [WSF]ThA_Devil - 28.01.2014, 17:09
Re: Crashdetect Array Index out of bounds. - by Konstantinos - 28.01.2014, 17:12
Re: Crashdetect Array Index out of bounds. - by [WSF]ThA_Devil - 28.01.2014, 17:24
Re: Crashdetect Array Index out of bounds. - by Konstantinos - 28.01.2014, 17:28
Re: Crashdetect Array Index out of bounds. - by [WSF]ThA_Devil - 28.01.2014, 17:32

Forum Jump:


Users browsing this thread: 3 Guest(s)