19.02.2014, 20:03
You should check if issuerid is a valid player before using it in arrays. So change:
to:
About the other array index out of bounds, I'd suggest you to compile with debug info (-d3)
-> https://github.com/Zeex/samp-plugin-...ith-debug-info
in order to get the line caused it instead of searching the whole OnPlayerDisconnect callback. If you don't use the latest version (4.13) of crashdetect plugin, then update it: https://github.com/Zeex/samp-plugin-...ases/tag/v4.13
Re-compile, start the server and if it gives another debug messages, post your server log.
pawn Код:
if(gTeam[issuerid] == TEAM_COP || gTeam[issuerid] == TEAM_ARMYAIR || gTeam[playerid] == TEAM_ARMYLAND || gTeam[issuerid] == TEAM_CIA || gTeam[issuerid] == TEAM_SWAT)
pawn Код:
if(issuerid != INVALID_PLAYER_ID && (gTeam[issuerid] == TEAM_COP || gTeam[issuerid] == TEAM_ARMYAIR || gTeam[playerid] == TEAM_ARMYLAND || gTeam[issuerid] == TEAM_CIA || gTeam[issuerid] == TEAM_SWAT))
-> https://github.com/Zeex/samp-plugin-...ith-debug-info
in order to get the line caused it instead of searching the whole OnPlayerDisconnect callback. If you don't use the latest version (4.13) of crashdetect plugin, then update it: https://github.com/Zeex/samp-plugin-...ases/tag/v4.13
Re-compile, start the server and if it gives another debug messages, post your server log.