Run Time Error 4
#8

No, you need to add in your own debugging to check what element is being accessed in the arrays. For example, you have this line:
pawn Код:
MapIconID[i] = CreateDynamicMapIcon(hInfo[i][X], hInfo[i][Y], hInfo[i][Z], 31, 0, 0, 0, a, 10.0);
Before that, add a print statement to check the value of "i" and if it exceeds the declaration size of MapIconID array:
pawn Код:
printf("Value of \"i\" accessing \"MapIconID\" - %i", i);
Reply


Messages In This Thread
Run Time Error 4 - by vinnythebest - 10.03.2013, 15:43
Re: Run Time Error 4 - by ReVo_ - 10.03.2013, 15:56
Re: Run Time Error 4 - by vinnythebest - 10.03.2013, 16:02
Re: Run Time Error 4 - by ReVo_ - 10.03.2013, 16:35
Re: Run Time Error 4 - by vinnythebest - 10.03.2013, 16:51
Re: Run Time Error 4 - by Bakr - 10.03.2013, 17:10
Re: Run Time Error 4 - by vinnythebest - 10.03.2013, 17:21
Re: Run Time Error 4 - by Bakr - 10.03.2013, 17:24
Re: Run Time Error 4 - by vinnythebest - 10.03.2013, 17:31
Re: Run Time Error 4 - by Bakr - 10.03.2013, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)