[09/03/14 08:42:25 PM] [join] Hkertem00 has joined the server (0:197.6.40.100) [09/03/14 08:42:25 PM] Time to execute connect for 'Hkertem00'(0): 1ms. [09/03/14 08:42:30 PM] Hkertem00(0) has registered! [09/03/14 08:42:44 PM] [ANTICHEAT] Player Hkertem00[0] has possibly connected with ******! [09/03/14 08:42:52 PM] [debug] Run time error 4: "Array index out of bounds" [09/03/14 08:42:52 PM] [debug] Accessing element at index 9 past array upper bound 8 [09/03/14 08:42:52 PM] [debug] AMX backtrace: [09/03/14 08:42:52 PM] [debug] #0 0002bcf8 in ?? (0x00000000, 0x00000008) from s7tdm.amx [09/03/14 08:42:52 PM] [debug] #1 0000f3a8 in public OnPlayerRequestClass (0x00000000, 0x00000008) from s7tdm.amx [09/03/14 08:42:52 PM] [debug] Run time error 4: "Array index out of bounds" [09/03/14 08:42:52 PM] [debug] Accessing element at index 9 past array upper bound 8 [09/03/14 08:42:52 PM] [debug] AMX backtrace: [09/03/14 08:42:52 PM] [debug] #0 0007c788 in ?? (0x00000000) from s7tdm.amx [09/03/14 08:42:52 PM] [debug] #1 000101bc in public OnPlayerRequestSpawn (0x00000000) from s7tdm.amx [09/03/14 08:42:57 PM] Warning: client exceeded 'messageslimit' 197.6.40.100:59342 (582) Limit: 500/sec [09/03/14 09:21:48 PM] Kicking 197.6.43.194 because they didn't logon to the game.
[09/03/14 08:42:57 PM] Warning: client exceeded 'messageslimit' 197.6.40.100:59342 (582) Limit: 500/sec
|
Code:
[09/03/14 08:42:57 PM] Warning: client exceeded 'messageslimit' 197.6.40.100:59342 (582) Limit: 500/sec ![]() |
|
Who knows. Add and increase the messageslimit in your server.cfg. And if possible, script a restriction where every text/command sent is restricted to 1 per second if you get me.
|
|
"Array index out of bounds" - This could be if invalid array sizes are being put upon your arrays. Whether in case if the array size is higher than the value it can hold or if it's below 0. You must look with your script, it's probably a fault in there.
The reason why there's an INVALID_PLAYER_ID check over killerid under OnPlayerDeath is to check if killerid is not an invalid player id. Because if INVALID_PLAYER_ID(65535) is assigned over arrays of MAX_PLAYERS(default : 500) size, the same crash will output. |
public OnPlayerRequestClass(playerid, classid)
{
SetPVarInt(playerid, "NoAB", 4);
if (gPlayerInfo[playerid][pPlayingTeam])
{
gTeam[gPlayerInfo[playerid][pPlayingTeam]][tPlayers]-=1;
gPlayerInfo[playerid][pPlayingTeam]=0;
}
gPlayerInfo[playerid][pChangeClass] = 1;
SetPVarInt(playerid, "classspawn", 0);
SetPlayerVirtualWorld(playerid, playerid+2);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
for (new i=1;i<MAX_TEAMS;i++) TextDrawHideForPlayer(playerid,gTeam[i][tClassText]);
gPlayerInfo[playerid][pTeam]=classid+1;
TextDrawShowForPlayer(playerid,gTeam[gPlayerInfo[playerid][pTeam]][tClassText]);
SetPlayerTeam(playerid,gPlayerInfo[playerid][pTeam]);
gPlayerInfo[playerid][pSpawned]=0;
TextDrawHideForPlayer(playerid, tw);
UpdateRank(playerid);
UpdateScoreDisplay(playerid);
PlayerTextDrawHide(playerid, TeamClassTD[playerid]);
TextDrawHideForPlayer(playerid, Text:TeamClassTD[playerid]);
return 1;
}