04.03.2015, 19:12
Here are crashdetect logs
Код:
[21:44:38] Unloaded part 1 [21:44:38] strcmp correct [21:44:38] [debug] Run time error 4: "Array index out of bounds" [21:44:38] [debug] Accessing element at index 46 past array upper bound 0 [21:44:38] [debug] AMX backtrace: [21:44:38] [debug] #0 00042574 in ?? (46) from drift.amx [21:44:38] [debug] #1 00043f70 in ?? (0) from drift.amx [21:44:38] [debug] #2 0002e280 in public Itter_OnPlayerDisconnect (0, 1) from drift.amx [21:44:38] [debug] #3 native CallLocalFunction () from samp-server.exe [21:44:38] [debug] #4 0001cb34 in ?? (0, 1) from drift.amx [21:44:38] [debug] #5 0000bca0 in public Streamer_OnPlayerDisconnect (0, 1) from drift.amx [21:44:38] [debug] #6 00006258 in public SSCANF_OnPlayerDisconnect (0, 1) from drift.amx [21:44:38] [debug] #7 native CallLocalFunction () from samp-server.exe [21:44:38] [debug] #8 00000684 in public OnPlayerDisconnect (0, 1) from drift.amx [21:44:38] [part] FeRRum[Scripter] has left the server (0:1)
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
new sz_String[128];
switch(reason)
{
case 0: format(sz_String, sizeof(sz_String), "%s[ID:%d] {FF0000}загуби връзка. {ffffff}(Crash)",PlayerName(playerid),playerid);
case 1: format(sz_String, sizeof(sz_String), "%s[ID:%d] {FF0000}излезе от сървъра. {ffffff}(Leave)",PlayerName(playerid),playerid);
case 2: format(sz_String, sizeof(sz_String), "%s[ID:%d] {FF0000}беше кикнат от сървъра. {ffffff}(Kick)",PlayerName(playerid),playerid);
}
SendClientMessageToAll(-1, sz_String);
InDM[playerid] = 0;
NoGoto[playerid] = 0;
NoPM[playerid] = 0;
LastPM[playerid] = -1;
GodMode[playerid] = 0;
NameTag[playerid] = 0;
if(CreatedRamp[playerid] == true) DestroyObject(Ramp[playerid]), CreatedRamp[playerid] = false;
CreatedRamp[playerid] = false;
RampEnabled[playerid] = 0;
Pers[playerid] = 0;
IsAFK[playerid] = 0;
PlayerPos[playerid][pPosX] = 0.0;
PlayerPos[playerid][pPosY] = 0.0;
PlayerPos[playerid][pPosZ] = 0.0;
PlayerPos[playerid][pPosA] = 0.0;
PlayerPos[playerid][pInterior] = 0;
PlayerPos[playerid][pVW] = 0;
PlayerPos[playerid][pSaved] = 0;
KillTimer(JailTimer[playerid]);
UnloadPlayerVehicles(playerid);
TextDrawHideForPlayer(playerid,ServerTextDrawOne);
TextDrawHideForPlayer(playerid,ServerTextDrawTwo);
TextDrawHideForPlayer(playerid,ServerTextDrawThree);
TextDrawHideForPlayer(playerid,ServerTextDrawFour[playerid]);
TextDrawHideForPlayer(playerid,ServerTextDrawFive[playerid]);
TextDrawHideForPlayer(playerid,ServerTextDrawSix[playerid]);
TextDrawSetString(ServerTextDrawFour[playerid]," ");
TextDrawSetString(ServerTextDrawFive[playerid]," ");
TextDrawSetString(ServerTextDrawSix[playerid]," ");
TextDrawHideForPlayer(playerid,LevelTXD[playerid]);
TextDrawHideForPlayer(playerid,ExpTXD[playerid]);
DriftMoney[playerid] = 0;
DriftScore[playerid] = 0;
DriftPoints[playerid] = 1;
PlayerPositionX[playerid] = 0.0;
PlayerPositionY[playerid] = 0.0;
PlayerPositionZ[playerid] = 0.0;
KillTimer(PlayerTimerOne[playerid]);
if(PlayerInfo[playerid][pMuted] >= 1)
{
new string[128];
format(string, sizeof(string), "AdmWarn: %s напусна сървъра с оставащо време от това, че беше заглушен %d минути.", PlayerName(playerid), PlayerInfo[playerid][pMuted]);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
AdminMessage(COLOR_ADMCMD, string);
}
}
}
HideSpawnTextdraws(playerid);
HideAFKTextdraws(playerid);
SavePlayer(playerid);
return 1;
}