[Ajuda] Public apagar fogo
#1

Minha Public apagarfogo esta ocorrendo esses erros abaixo, oque ta errado?

PHP код:
[debugAMX 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
[debugRun time error 4"Array index out of bounds"
[debug]  Accessing element at index 6356992 past array upper bound 49
[debugAMX 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
[debugRun time error 4"Array index out of bounds"
[debug]  Accessing element at index 1912602624 past array upper bound 49
[debugAMX backtrace:
=================================
[
debugRun time error 4"Array index out of bounds"
[debug]  Accessing element at index 256 past array upper bound 255
[debugAMX 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*250);
        new 
Str[122];
        
SendFamilyMessage(200xF05353FF"|--------------------------------------------------------------------------------------------------------------------------|");
        
SendFamilyMessage(200xF05353FF"[INCКNDIO]: Nгo ha mais focos de incкndios na cidade!");
        if(
VitimasIncendio)
        {
            
format(Strsizeof Str" - Ao todo %d pessoas morreram queimadas no incкndio."VitimasIncendio);
        }
        else 
format(Strsizeof Str" - Felizmente nгo foram encontradas vнtimas Fatais no incкndio.");
        
SendFamilyMessage(200xF05353FFStr);
        
SendFamilyMessage(200xF05353FF"|--------------------------------------------------------------------------------------------------------------------------|");
        if(
BombeiroApagou){
            
format(Strsizeof Str"***Sua organizaзгo ajudou a apagar o incкndio, por isso ganhou: R$%d de bфnus!"ConvertMoney(BonusApagou));
            
SendFamilyMessage(20COLOR_LIGHTBLUEStr);
            foreach(
Playeri)
            {
                if(
GetPlayerOrg(i) == 20)
                {
                    
GiveDinheiro(iBonusApagou);
                }
            }
        }
        
TendoIncendio=false;
     } 
Reply
#2

PHP код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[20:36:02
[
20:36:02Server Plugins
[20:36:02] --------------
[
20:36:02]  Loading plugincrashdetect
[20:36:02]   CrashDetect v4.15.1 is OK.
[
20:36:02]   Loaded.
[
20:36:02]  Loading pluginsscanf
[20:36:02
[
20:36:02]  ===============================
[
20:36:02]       sscanf plugin loaded.     
[
20:36:02]          Version:  2.8.1        
[20:36:02]    (c2012 Alex "******" Cole  
[20:36:02]  ===============================
[
20:36:02]   Loaded.
[
20:36:02]  Loading pluginstreamer
[20:36:02]   Loaded.
[
20:36:02]  Loading pluginMapAndreas
[20:36:02]   Loaded.
[
20:36:02]  Loaded 4 plugins.
[
20:36:02
[
20:36:02Ban list
[
20:36:02] --------
[
20:36:02]  Loadedsamp.ban
[20:36:02
[
20:36:02
[
20:36:02Filterscripts
[20:36:02] ---------------
[
20:36:02]   Loading filterscript 'mensagem.amx'...
[
20:36:02]   Loaded 1 filterscripts.
[
20:36:02OnGameo
[20:36:02] =======================================================================
[
20:36:02] = CarregandoBrasil Magic Games   RPG 1.0
[20:36:02] =======================================================================
[
20:36:02MapAndreasplugin could not init!
[
20:36:02MapAndreascheck files and make sure you have enough memory!
[
20:36:03] => Casas                    321 Carregadas
[20:36:03] => Empresas                 43 Carregadas
[20:36:03] => Fazendas                 20 Carregadas
[20:36:03] [debugRun time error 4"Array index out of bounds"
[20:36:03] [debug]  Accessing element at index 256 past array upper bound 255
[20:36:03] [debugAMX backtrace:
[
20:36:03] [debug#0 00004fa8 in ?? (12203808, -1, 0) from PLR.amx
[20:36:03] [debug#1 00003e6c in ?? (12203808, 11906452, 12203712, 16, 12188684) from PLR.amx
[20:36:03] [debug#2 00003fdc in ?? (12203808, 11906452, 12188684) from PLR.amx
[20:36:03] [debug#3 003e4780 in public LoadCofreOrg () from PLR.amx
[20:36:03] [debug#4 001da4d4 in public ab_OnGameModeInit () from PLR.amx
[20:36:03] [debug#5 native CallLocalFunction () from samp-server.exe
[20:36:03] [debug#6 00007668 in public SSCANF_OnGameModeInit () from PLR.amx
[20:36:03] [debug#7 native CallLocalFunction () from samp-server.exe
[20:36:03] [debug#8 000066bc in public Itter_OnGameModeInit () from PLR.amx
[20:36:03] [debug#9 native CallLocalFunction () from samp-server.exe
[20:36:03] [debug#10 00001898 in public OnGameModeInit () from PLR.amx
[20:36:03Number of vehicle models95 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)