05.05.2017, 22:37
Minha Public apagarfogo esta ocorrendo esses erros abaixo, oque ta errado?
PHP код:
[debug] AMX backtrace:
[debug] #0 003e4548 in ?? (1627389952) from PLR.amx
[debug] #1 0003f1a8 in public ApagarFogo (1627389952) from PLR.amx
[debug] #2 native CallRemoteFunction () from samp-server.exe
[debug] #3 0000ff9c in public UpdateFire () from PLR.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 6356992 past array upper bound 49
[debug] AMX backtrace:
[debug] #0 003e4548 in ?? (6356992) from PLR.amx
[debug] #1 0003f1a8 in public ApagarFogo (6356992) from PLR.amx
[debug] #2 native CallRemoteFunction () from samp-server.exe
[debug] #3 0000ff9c in public UpdateFire () from PLR.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1912602624 past array upper bound 49
[debug] AMX backtrace:
=================================
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 256 past array upper bound 255
[debug] AMX backtrace:
[debug] #0 00004fa8 in ?? (12203808, -1, 0) from PLR.amx
[debug] #1 00003e6c in ?? (12203808, 11906452, 12203712, 16, 12188684) from PLR.amx
[debug] #2 00003fdc in ?? (12203808, 11906452, 12188684) from PLR.amx
[debug] #3 003e4780 in public LoadCofreOrg () from PLR.amx
[debug] #4 001da4d4 in public ab_OnGameModeInit () from PLR.amx
[debug] #5 native CallLocalFunction () from samp-server.exe
[debug] #6 00007668 in public SSCANF_OnGameModeInit () from PLR.amx
[debug] #7 native CallLocalFunction () from samp-server.exe
[debug] #8 000066bc in public Itter_OnGameModeInit () from PLR.amx
[debug] #9 native CallLocalFunction () from samp-server.exe
[debug] #10 00001898 in public OnGameModeInit () from PLR.amx
==============================================
public ApagarFogo(playerid)
{
if(!CountFires())
{
SetTimer("CriarIncendio", 20000*25, 0);
new Str[122];
SendFamilyMessage(20, 0xF05353FF, "|--------------------------------------------------------------------------------------------------------------------------|");
SendFamilyMessage(20, 0xF05353FF, "[INCКNDIO]: Nгo ha mais focos de incкndios na cidade!");
if(VitimasIncendio)
{
format(Str, sizeof Str, " - Ao todo %d pessoas morreram queimadas no incкndio.", VitimasIncendio);
}
else format(Str, sizeof Str, " - Felizmente nгo foram encontradas vнtimas Fatais no incкndio.");
SendFamilyMessage(20, 0xF05353FF, Str);
SendFamilyMessage(20, 0xF05353FF, "|--------------------------------------------------------------------------------------------------------------------------|");
if(BombeiroApagou){
format(Str, sizeof Str, "***Sua organizaзгo ajudou a apagar o incкndio, por isso ganhou: R$%d de bфnus!", ConvertMoney(BonusApagou));
SendFamilyMessage(20, COLOR_LIGHTBLUE, Str);
foreach(Player, i)
{
if(GetPlayerOrg(i) == 20)
{
GiveDinheiro(i, BonusApagou);
}
}
}
TendoIncendio=false;
}