Detaljan opis problema:pa ubacio sam crasherdetec... i daje mi ovo da nije uredu onplayerdeath
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[17:56:58] Run time error 4: "Array index out of bounds"
[17:56:58] Accessing element at index 65535 past array upper bound 49
[17:56:58] AMX backtrace:
[17:56:58] #0 0001b9d0 in public OnPlayerDeath (0x00000001, 0x0000ffff, 0x000000ff) from MGRP.amxpublic OnPlayerDeath(playerid, killerid, reason)
{
new string;
VlezevoBiznis = 0;
TazerAcceso = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 255;
DisablePlayerCheckpoint(playerid);
//====================================================================================
if(PlayerInfo == 8)
{
if(PlayerInfo == 1)
{
format(string, sizeof(string), "META: Hitman %s je ubio %s za %d$", PlayerName(killerid), PlayerName(playerid), PlayerInfo);
HitmenPoraka(COLOR_YELLOW,string);
SendClientMessage(playerid,-1,"* Ubio ve je hitman clan!");
SafeGivePlayerMoneyPlus(killerid, PlayerInfo);
PlayerInfo = 0;
PlayerInfo = 0;
SaveStatistika(playerid);
SaveStatistika(killerid);
}
}
//====================================================================================
if(IsPlayerConnected(killerid))
{
format(string, sizeof(string), "MG Anticheat: %s(%d) je ubio %s(%d)", PlayerName(killerid), killerid, PlayerName(playerid), playerid);
SendAdminGmMessage(COLOR_LIGHTRED,string);
}
//====================================================================================
if(Mobile != 255)
{
SendClientMessage(Mobile, COLOR_GRAD2, "Linijata e pekinata....");
obile = 255;
CellTime[Mobile] = 0;
CellTime = 0;
}
//====================================================================================
return 1;
}