10.10.2011, 21:03
The warning is ubicated in playerdeath
function:
Warings in crashdetect.log
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);
}
}
}
}
Код:
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)