14.05.2015, 18:25
[23:01:17] [debug] Run time error 4: "Array index out of bounds"
[23:01:17] [debug] Accessing element at index 78 past array upper bound 77
[23:01:17] [debug] AMX backtrace:
[23:01:17] [debug] #0 0028bfec in public CustomPickups () at D:\Gta-Sv-Run\gamemodes\rlrp.pwn:46139
code in gamemode
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(string, sizeof(string), "{00b4ff}Biz %d \n{FFFFFF}%s \n{00b4ff}This Business is for sale \n Cost: {FFFFFF}$%s \n{00b4ff}Level: {FFFFFF}%d \n{00b4ff}Entrance Fee: {FFFFFF}$%s \n{00b4ff}to buy this Business type {FFFFFF}/buybiz",BizzInfo[h],BizzInfo[h][bMessage],FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded],FormatNumber(BizzInfo[h][bEntranceCost]));
UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "{00b4ff}Biz %d \n{FFFFFF}%s \n{00b4ff}Owner: {FFFFFF}%s \n{00b4ff}Level: {FFFFFF}%d \n{00b4ff}Entrance Fee: {FFFFFF}$%s \n{00b4ff}Type: {FFFFFF}/enter to enter",BizzInfo[h],BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],FormatNumber(BizzInfo[h][bEntranceCost]));
UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);
}
else if(BizzInfo[h][bOwned] == 2)
{
format(string, sizeof(string), "{00b4ff}Biz %d \n{FFFFFF}%s \n{00b4ff}This Business is for sale \n{00b4ff}Owner: {FFFFFF}%s \n{00b4ff}Level: {FFFFFF}%d \n{00b4ff}Entrance Fee: {FFFFFF}$%s \n{00b4ff}Cost: {FFFFFF}$%s \n{00b4ff}Type: {FFFFFF}/buybiz to buy",BizzInfo[h],BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],FormatNumber(BizzInfo[h][bEntranceCost]),FormatNumber(BizzInfo[h][bForosh]));
UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);
}
}
line 46139 = UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);
[23:01:17] [debug] Accessing element at index 78 past array upper bound 77
[23:01:17] [debug] AMX backtrace:
[23:01:17] [debug] #0 0028bfec in public CustomPickups () at D:\Gta-Sv-Run\gamemodes\rlrp.pwn:46139
code in gamemode
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(string, sizeof(string), "{00b4ff}Biz %d \n{FFFFFF}%s \n{00b4ff}This Business is for sale \n Cost: {FFFFFF}$%s \n{00b4ff}Level: {FFFFFF}%d \n{00b4ff}Entrance Fee: {FFFFFF}$%s \n{00b4ff}to buy this Business type {FFFFFF}/buybiz",BizzInfo[h],BizzInfo[h][bMessage],FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded],FormatNumber(BizzInfo[h][bEntranceCost]));
UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "{00b4ff}Biz %d \n{FFFFFF}%s \n{00b4ff}Owner: {FFFFFF}%s \n{00b4ff}Level: {FFFFFF}%d \n{00b4ff}Entrance Fee: {FFFFFF}$%s \n{00b4ff}Type: {FFFFFF}/enter to enter",BizzInfo[h],BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],FormatNumber(BizzInfo[h][bEntranceCost]));
UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);
}
else if(BizzInfo[h][bOwned] == 2)
{
format(string, sizeof(string), "{00b4ff}Biz %d \n{FFFFFF}%s \n{00b4ff}This Business is for sale \n{00b4ff}Owner: {FFFFFF}%s \n{00b4ff}Level: {FFFFFF}%d \n{00b4ff}Entrance Fee: {FFFFFF}$%s \n{00b4ff}Cost: {FFFFFF}$%s \n{00b4ff}Type: {FFFFFF}/buybiz to buy",BizzInfo[h],BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],FormatNumber(BizzInfo[h][bEntranceCost]),FormatNumber(BizzInfo[h][bForosh]));
UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);
}
}
line 46139 = UpdateDynamic3DTextLabelText(bizer[h], COLOR_BIZ, string);