13.09.2014, 15:29
Quote:
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.
|
Quote:
"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. |
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; }