16.05.2018, 09:53
Great, got some shit on the logs.
There is more of lines in this function but If I sent all you will just get lazy to read them all, although these are the newest edited ones, I just found out that they get less so quickly, So I don't know what to do with them.
Quote:
[11:43:19] [debug] #0 00089cd8 in public SecondTimer () from asd.amx [11:43:19] [debug] Run time error 4: "Array index out of bounds" [11:43:19] [debug] Attempted to read/write array element at negative index -1 [11:43:19] [debug] AMX backtrace: [11:43:19] [debug] #0 00089cd8 in public SecondTimer () from asd.amx [11:43:19] [debug] Run time error 4: "Array index out of bounds" [11:43:19] [debug] Attempted to read/write array element at negative index -1 [11:43:19] [debug] AMX backtrace: [11:43:19] [debug] #0 00089cd8 in public SecondTimer () from asd.amx [11:43:20] [debug] Run time error 4: "Array index out of bounds" [11:43:20] [debug] Attempted to read/write array element at negative index -1 [11:43:20] [debug] AMX backtrace: [11:43:20] [debug] #0 00089cd8 in public SecondTimer () from asd.amx [11:43:20] [debug] Run time error 4: "Array index out of bounds" [11:43:20] [debug] Attempted to read/write array element at negative index -1 [11:43:20] [debug] AMX backtrace: [11:43:20] [debug] #0 00089cd8 in public SecondTimer () from asd.amx [11:43:20] [debug] Run time error 4: "Array index out of bounds" [11:43:20] [debug] Attempted to read/write array element at negative index -1 [11:43:20] [debug] AMX backtrace: [11:43:20] [debug] #0 00089cd8 in public SecondTimer () from asd.amx [11:43:20] [debug] Run time error 4: "Array index out of bounds" [11:43:20] [debug] Attempted to read/write array element at negative index -1 [11:43:20] [debug] AMX backtrace: [11:43:20] [debug] #0 00089cd8 in public SecondTimer () from asd.amx [11:43:20] [debug] Run time error 4: "Array index out of bounds" [11:43:20] [debug] Attempted to read/write array element at negative index -1 [11:43:20] [debug] AMX backtrace: [11:43:20] [debug] #0 00089cd8 in public SecondTimer () from asd.amx |
PHP код:
forward SecondTimer();
public SecondTimer()
{
new hour, minute, second, boomboxid, string[128];
gettime(hour, minute, second);
if((gGMX) && mysql_unprocessed_queries(connectionID) == 0)
{
SendRconCommand("gmx");
}
foreach(new i : Player)
{
SetPlayerTime(i, hour, minute);
if(PlayerInfo[i][pLogged] && !PlayerInfo[i][pKicked])
{
AFKCheck(i);
//NOPCheck(i);
if(PlayerInfo[i][pSpamTime] > 0)
{
PlayerInfo[i][pSpamTime]--;
}
if(PlayerInfo[i][pVehicleCount] > 0)
{
PlayerInfo[i][pVehicleCount]--;
}
if(PlayerInfo[i][pMechanicCall] > 0)
{
PlayerInfo[i][pMechanicCall]--;
}
if(PlayerInfo[i][pTaxiCall] > 0)
{
PlayerInfo[i][pTaxiCall]--;
}
if(PlayerInfo[i][pEmergencyCall] > 0)
{
PlayerInfo[i][pEmergencyCall]--;
}
if(PlayerInfo[i][pCourierCooldown] > 0)
{
PlayerInfo[i][pCourierCooldown]--;
}
if(PlayerInfo[i][pPizzaCooldown] > 0)
{
PlayerInfo[i][pPizzaCooldown]--;
}
if(PlayerInfo[i][pDetectiveCooldown] > 0)
{
PlayerInfo[i][pDetectiveCooldown]--;
}
if(PlayerInfo[i][pThiefCooldown] > 0)
{
PlayerInfo[i][pThiefCooldown]--;
}
if(PlayerInfo[i][pCocaineCooldown] > 0)
{
PlayerInfo[i][pCocaineCooldown]--;
}
if(PlayerInfo[i][pACFired] > 0)
{
PlayerInfo[i][pACFired]--;
}
if(PlayerInfo[i][pRapidFire] > 0)
{
PlayerInfo[i][pRapidFire]--;
}
if(PlayerInfo[i][pGodmode] > 0)
{
PlayerInfo[i][pGodmode]--;
}