array index out of bounds
#1

Code:
 error 032: array index out of bounds (variable "DevBug")
 error 032: array index out of bounds (variable "DevBug")
 error 032: array index out of bounds (variable "DevBug")
pawn Code:
stock LoadBugs()
{
    new file[64];
    format(file, sizeof(file), "buglist.ini");
    format(DevBug[1][dBugs], 128, "%s", dini_Get(file, "BR1"));
    format(DevBug[2][dBugs], 128, "%s", dini_Get(file, "BR2"));
    format(DevBug[3][dBugs], 128, "%s", dini_Get(file, "BR3"));
    format(DevBug[4][dBugs], 128, "%s", dini_Get(file, "BR4"));
    format(DevBug[5][dBugs], 128, "%s", dini_Get(file, "BR5"));
    format(DevBug[6][dBugs], 128, "%s", dini_Get(file, "BR6"));
    format(DevBug[7][dBugs], 128, "%s", dini_Get(file, "BR7"));
    format(DevBug[8][dBugs], 128, "%s", dini_Get(file, "BR8"));
    format(DevBug[9][dBugs], 128, "%s", dini_Get(file, "BR9"));
    format(DevBug[10][dBugs], 128, "%s", dini_Get(file, "BR10"));
    format(DevBug[11][dBugs], 128, "%s", dini_Get(file, "BR11"));
    format(DevBug[12][dBugs], 128, "%s", dini_Get(file, "BR12"));
    format(DevBug[13][dBugs], 128, "%s", dini_Get(file, "BR13"));
    format(DevBug[14][dBugs], 128, "%s", dini_Get(file, "BR14"));
    format(DevBug[15][dBugs], 128, "%s", dini_Get(file, "BR15"));
    return 1;
}
pawn Code:
new DevBug[MAX_BUGS][dBugs];
#define MAX_BUGS 16
Reply


Messages In This Thread
array index out of bounds - by Facerafter - 09.07.2014, 12:09
Re: array index out of bounds - by Sawalha - 09.07.2014, 12:18
Re: array index out of bounds - by DavidSparks - 09.07.2014, 12:22
Re: array index out of bounds - by Facerafter - 09.07.2014, 12:23
Re: array index out of bounds - by DavidSparks - 09.07.2014, 12:25
Re: array index out of bounds - by ikkentim - 09.07.2014, 12:29
Re: array index out of bounds - by Sawalha - 09.07.2014, 12:29
Re: array index out of bounds - by Facerafter - 09.07.2014, 12:32
Re: array index out of bounds - by DavidSparks - 09.07.2014, 12:38
Re: array index out of bounds - by Konstantinos - 09.07.2014, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)