[Pomoc] 2 problema kod padanja servera

Započeo FarkiAs, Avgust 20, 2013, 17:36:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

FarkiAs

skripta: moja od 0
opis problema: ubacio sam crashdetect da vidim zašto pada server i on je izbacio ova dva problema, Ondialogresponse i OnPlayerDeath
dio skripte:

kod onplayerdeath je ovako

[14:33:14] [debug] Run time error 4: "Array index out of bounds"
[14:33:14] [debug]  Accessing element at index 65535 past array upper bound 69
[14:33:14] [debug] AMX backtrace:
[14:33:14] [debug] #0 00159894 in public OnPlayerDeath () from SSRP.amx
[14:33:14] [death] Punisher_Smith died 255


to uvijek izbaci kad neko umre i to crasha

evo čitav onplayerdeath

public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
    ResetPlayerWeapons(playerid); ResetujVar(playerid);
    ////////////////////////////////////////////////////////////
    if(IgracPolicajac(killerid) || IgracUWaru[killerid] == 1)
    {
      PlayerInfo[killerid][pTrazeniLevel] = 0;
      SetPlayerWantedLevel(killerid,0);
    }
////////////////////////////////////////////////////////////
if(ecp[playerid] != 0)
{
Prisustvuje[playerid] = false;
vorcp[playerid] = 0;
}
////////////////////////////////////////////////////////////
    /*if(!IgracPolicajac(killerid) || IgracUWaru[killerid] == 0 && IsPlayerConnected(playerid))
{
PostaviWanted(killerid, "Ubistvo", "Nepoznat");
}
*/

////////////////////////////////////////////////////////////
if(GetPlayerWantedLevel(killerid) > 6)
{
SetPlayerWantedLevel(killerid, 6);
PlayerInfo[killerid][pTrazeniLevel] = 6;
}
    ////////////////////////////////////////////////////////////
    if(IgracUWaru[killerid] == 0)
    {
    if(GetPlayerWantedLevel(playerid) > 0)
{
    new string[128];
g_NovacMinus(playerid, GetPlayerWantedLevel(playerid)*400);
SCMF(playerid, 0xFFFFFFAA, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", GetPlayerWantedLevel(playerid)*400, GetPlayerWantedLevel(playerid));
SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pTrazeniLevel] = 0;
    format(string,sizeof(string),""CRVENA"[ac] "SIVA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
AdminGameMaster(0xFFFFFFAA,string);
    }
    }
    ////////////////////////////////////////////////////////////
if(IsPlayerConnected(killerid) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
    new string[128];
format(string,sizeof(string), ""CRVENA"[ac Anti DB] "SIVA"Igrac %s (ID:%d) je uradio Drive By nad igracem %s (ID:%d)!", GetName(killerid), killerid, GetName(playerid), playerid);
    AdminGameMaster(0xFFFFFFAA, string);
}
////////////////////////////////////////////////////////////
/*if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
{
    new string[128];
format(string,sizeof(string), ""CRVENA"[ac AK] "SIVA"Igrac %s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
AdminGameMaster(0xFFFFFFAA, string);
}
*/
////////////////////////////////////////////////////////////
if(gPlayerUsingLoopingAnim[playerid])
{
gPlayerUsingLoopingAnim[playerid] = 0;
}
/////////////////////////////////////////////////////////////
if(IsPlayerConnected(killerid) && WarAktivan == true && IgracUWaru[playerid] == 1 && IgracUWaru[killerid] == 1)
{
WarUbistava[killerid]++;
WarSmrti[playerid]++;
    new ss[5],xs[128];
    if(PlayerInfo[playerid][pClan] == PlayerInfo[killerid][pClan])
    {
        if(PlayerInfo[killerid][pClan] == WarTim1)
        {
        Tim1Skor -= 1;
format(ss, sizeof ss, "%d", Tim1Skor);
        TextDrawSetString(WarTD4, ss);
}
else
{
        Tim2Skor -= 1;
        format(ss, sizeof ss, "%d", Tim2Skor);
        TextDrawSetString(WarTD5, ss);
}
        format(xs, sizeof(xs), "(war) %s je ubio svog saigraca %s, te je njegov tim dobio -1 poen.", GetName(killerid), GetName(playerid));
        WarPoruka(0x800080FF, xs);
}
    if(PlayerInfo[killerid][pClan] == WarTim1 && PlayerInfo[playerid][pClan] == WarTim2)
    {
        Tim1Skor++;
        format(ss, sizeof ss, "%d", Tim1Skor);
        TextDrawSetString(WarTD4, ss);
        format(xs, sizeof(xs), "(war) %s je ubio protivnika %s.", GetName(killerid), GetName(playerid));
        WarPoruka(0x800080FF, xs);
}
    else if(PlayerInfo[killerid][pClan] == WarTim2 && PlayerInfo[playerid][pClan] == WarTim1)
    {
        Tim2Skor++;
        format(ss, sizeof ss, "%d", Tim2Skor);
        TextDrawSetString(WarTD5, ss);
        format(xs, sizeof(xs), "(war) %s je ubio protivnika %s.", GetName(killerid), GetName(playerid));
        WarPoruka(0x800080FF, xs);
}
}
SpawnIgraca(playerid);
////////////////////////////////////////////////////////////
    return 1;
}


a kod ondialogresponse

[13:11:28] [debug] Run time error 5: "Invalid memory access"
[13:11:28] [debug] AMX backtrace:
[13:11:28] [debug] #0 002b3044 in public OnDialogResponse () from SSRP.amx


pošto je velik dialogresponse recite šta vam treba iz njega.

FarkiAs