Please help!!
#8

The warning is ubicated in playerdeath

function:

pawn Код:
if(EnZona[killerid] == 0)
    {
        new ArmaCheck = GetPlayerWeapon(killerid);
        if(ArmaCheck == 35 || ArmaCheck == 36 || ArmaCheck == 37 || ArmaCheck == 38 || ArmaCheck == 39)
        {
            new string[300],wea[500];
            new PlayerName[MAX_PLAYER_NAME];
            GetPlayerName(killerid, PlayerName, MAX_PLAYER_NAME);
            new year,month,day; getdate(year, month, day);
            new hour,minute,second; gettime(hour,minute,second);
       
            format(string,sizeof(string),"* Admin NPC kickeo a %s (Armas prohibidas)", PlayerName);
            SendClientMessageToAll(naranja,string);
            print(string);
   
            format(wea,sizeof(wea),"{FFFFFF}Disculpa %s, tu has sido Kickeado del servidor!\
            \n\n{FFFFFF}Admin: NPC\
            \n{FFFFFF}Razon: Armas prohibidas.\
            \n{FFFFFF}Fecha: %i/%i/%i Hora: %i:%i :%i\
            \n\n{FFFFFF}* Intenta no ser un novato y vuelve sin cheats."
,PlayerName,day,month,year, hour, minute, second);
            ShowPlayerDialog(killerid, 8000, DIALOG_STYLE_MSGBOX, " *          ", wea, "OK", "");
   
            for(new p = 0; p < MAX_PLAYERS; p++)
            {
                if(IsPlayerConnected(p))
                {
                    PlayerPlaySound(p,1140,0.0,0.0,0.0);
                    Kick(killerid);
                }
            }
        }
    }
Warings in crashdetect.log
Код:
Plugin succesfully loaded (version 3.1.3)
gamemodes\FTS.amx: During execution of OnPlayerDeath:
gamemodes\FTS.amx: Run time error 4: "Array index out of bounds".
gamemodes\FTS.amx: During execution of OnPlayerDeath:
gamemodes\FTS.amx: Run time error 4: "Array index out of bounds".
gamemodes\FTS.amx: During execution of OnPlayerDeath:
gamemodes\FTS.amx: Run time error 4: "Array index out of bounds".
Plugin succesfully loaded (version 3.1.3)
Reply


Messages In This Thread
Please help!! - by RcoN! - 10.10.2011, 20:14
Respuesta: Please help!! - by matias1994 - 10.10.2011, 20:21
Re: Please help!! - by Dripac - 10.10.2011, 20:21
Re: Please help!! - by grand.Theft.Otto - 10.10.2011, 20:24
Re: Please help!! - by Joe Staff - 10.10.2011, 20:25
Respuesta: Please help!! - by RcoN! - 10.10.2011, 20:25
Re: Please help!! - by GrimR - 10.10.2011, 20:46
Respuesta: Please help!! - by RcoN! - 10.10.2011, 21:03
Re: Please help!! - by GrimR - 10.10.2011, 21:10
Respuesta: Re: Please help!! - by RcoN! - 10.10.2011, 21:13

Forum Jump:


Users browsing this thread: 3 Guest(s)