[03:50:25] [debug] Run time error 4: "Array index out of bounds" [03:50:25] [debug] Accessing element at negative index -400 [03:50:25] [debug] AMX backtrace: [03:50:25] [debug] #0 003f5730 in public Atualizar3Dtexts () from BPS.amx [03:50:25] [debug] #1 001eb758 in public ab_OnGameModeInit () from BPS.amx [03:50:25] [debug] #2 native CallLocalFunction () from samp03svr [03:50:25] [debug] #3 00007668 in public SSCANF_OnGameModeInit () from BPS.amx [03:50:25] [debug] #4 native CallLocalFunction () from samp03svr [03:50:25] [debug] #5 000066bc in public Itter_OnGameModeInit () from BPS.amx [03:50:25] [debug] #6 native CallLocalFunction () from samp03svr [03:50:25] [debug] #7 00001898 in public OnGameModeInit () from BPS.amx |
PRL::Atualizar3Dtexts() { new FormatPerigoso[600]; for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "[CASA ID: %03d]\n\ Esta casa esta a venda\n\ Descricao: %s\n\ Preзo: R$%d\n\ Nнvel: %d\n\ Carro: %s\n\ Use /comprarcasa", h, HouseInfo[h][hDiscription], HouseInfo[h][hValue], HouseInfo[h][hLevel], veehName[HouseInfo[h][hVec]-400]); Delete3DTextLabel(HouseLabel[h]); HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0x00CC00FF,HouseI nfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0); DestroyDynamicPickup(HousePickup[h]); HousePickup[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "[CASA ID: %03d]\n\ O dono desta casa й %s\n\ Nнvel: %d\n\ Veнculo: %s\n\ Ъltimo login: [%s]\n\ Aperte a letra F para entrar", h, HouseInfo[h][hOwner], HouseInfo[h][hLevel], veehName[HouseInfo[h][hVec]-400], HouseInfo[h][hVerData]); Delete3DTextLabel(HouseLabel[h]); HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0x799AFFFF,HouseI nfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0); } else { format(FormatPerigoso, sizeof(FormatPerigoso), "[CASA ID: %03d]\n\ O dono desta casa й %s\n\ Aluguel: R$%d\n\ Nнvel: %d\n\ Veнculo: %s\n\ Ъltimo Login: [%s]\n\ USE /alugarquarto para aluga-la\n\ Aperte a letra F para entrar", h, HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hLevel], veehName[HouseInfo[h][hVec]-400], HouseInfo[h][hVerData]); Delete3DTextLabel(HouseLabel[h]); HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0x799AFFFF,HouseI nfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0); DestroyDynamicPickup(HousePickup[h]); HousePickup[h] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } } } for(new h = 0; h < sizeof(BizzInfo); h++) { if(BizzInfo[h][bOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "Esta empresa esta a venda\n%s\n\ Preзo da Empresa: R$%d\n\ Nнvel: %d\n\ Fundos: R$%d\n\ Produtos: %d\n\ Produtos requeridos: %d\n\ Para comprar digite /comprarempresa", BizzInfo[h][bMessage], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded], BizzInfo[h][bTill], BizzInfo[h][bProducts], BizzInfo[h][bProductsReq]); Update3DTextLabelText(BizzLabel[h], COLOR_AZULBB, FormatPerigoso); } if(BizzInfo[h][bOwned] == 1) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ Dono da Empresa: %s\n\ Extorsгo: %s\n\ Entrada: R$%d\n\ Nнvel: %d\n\ Aperte a letra F para entrar\n\ Fundos: $%d\n\ Produtos: %d\n\ Produtos requeridos: %d", BizzInfo[h][bMessage], BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost], BizzInfo[h][bLevelNeeded], BizzInfo[h][bTill], BizzInfo[h][bProducts], BizzInfo[h][bProductsReq]); Update3DTextLabelText(BizzLabel[h], COLOR_AZULBB, FormatPerigoso); } } for(new h = 0; h < sizeof(SBizzInfo); h++) { if(SBizzInfo[h][sbOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "Esta empresa esta a venda\n\ %s\n\ Preзo da mini empresa: R$%d\n\ Nнvel: %d\n\ Fundos: $%d\n\ Produtos: %d\n\ Produtos requeridos: %d\n\ Para comprar digite /comprarempresa", SBizzInfo[h][sbMessage], SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded], SBizzInfo[h][sbTill], SBizzInfo[h][sbProducts], SBizzInfo[h][sbProductsReq]); Update3DTextLabelText(SBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } if(SBizzInfo[h][sbOwned] == 1) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ Dono da empresa: %s\n\ Extorsгo: %s\n\ Entrada: R$%d\n\ Nнvel: %d\n\ Fundos: %d\n\ Produtos: %d\n\ Produtos requeridos: %d", SBizzInfo[h][sbMessage], SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], SBizzInfo[h][sbEntranceCost], SBizzInfo[h][sbLevelNeeded], SBizzInfo[h][sbTill], SBizzInfo[h][sbProducts], SBizzInfo[h][sbProductsReq]); Update3DTextLabelText(SBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } } for(new h = 0; h < sizeof(FBizzInfo); h++) { if(FBizzInfo[h][fbOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ Esta Fazenda esta a venda\n\ Valor: R$%d\n\ Nivel: %d\n\ Produtos Requeridos: %d\n\ Preзo por Produto:R$ %d\n\ Para comprar digite /comprarfazenda", FBizzInfo[h][fbMessage], FBizzInfo[h][fbBuyPrice], FBizzInfo[h][fbLevelNeeded], (FBizzInfo[h][fbMaxProducts]-FBizzInfo[h][fbProducts]), FBizzInfo[h][fbPriceProd]); Update3DTextLabelText(FBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } if(FBizzInfo[h][fbOwned] == 1) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ Dono da Fazenda: %s\n\ Extorcao: %s\n\ Produtos Requeridos: %d\n\ Preзo por Produto:R$ %d\n\ Fundos:R$ %d", FBizzInfo[h][fbMessage], FBizzInfo[h][fbOwner], FBizzInfo[h][fbExtortion], (FBizzInfo[h][fbMaxProducts]-FBizzInfo[h][fbProducts]), FBizzInfo[h][fbPriceProd], FBizzInfo[h][fbTill]); Update3DTextLabelText(FBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } } return 0; } |