Server crasher (logs)
#6

Quote:
Originally Posted by Sublime
View Post
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.
If it were text/commands causing the crashes, it'd be logged even before the server crashed.

Quote:
Originally Posted by Lordzy
View Post
"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.
I have checks in OnPlayerDeath and what not for invalid ID checks, but these messages are coming from OnPlayerConnect and OnPlayerRequestClass.

Code:
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;
}
Reply


Messages In This Thread
Server crasher (logs) - by rymax99 - 09.09.2014, 20:59
Re: Server crasher (logs) - by Sublime - 10.09.2014, 01:53
Re: Server crasher (logs) - by rymax99 - 10.09.2014, 02:18
Re: Server crasher (logs) - by Sublime - 10.09.2014, 02:58
Re: Server crasher (logs) - by Lordzy - 10.09.2014, 04:24
Re: Server crasher (logs) - by rymax99 - 13.09.2014, 15:29
Re: Server crasher (logs) - by IceCube! - 13.09.2014, 23:25

Forum Jump:


Users browsing this thread: 2 Guest(s)