Problem
#4

You should check if issuerid is a valid player before using it in arrays. So change:
pawn Код:
if(gTeam[issuerid] == TEAM_COP || gTeam[issuerid] == TEAM_ARMYAIR || gTeam[playerid] == TEAM_ARMYLAND || gTeam[issuerid] == TEAM_CIA || gTeam[issuerid] == TEAM_SWAT)
to:
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))
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.
Reply


Messages In This Thread
Problem - by Problems - 19.02.2014, 19:11
Re: Problem - by Renaldasj - 19.02.2014, 19:21
Re: Problem - by Problems - 19.02.2014, 19:36
Re: Problem - by Konstantinos - 19.02.2014, 20:03
Re: Problem - by CrossUSAAF - 19.02.2014, 20:14
Re: Problem - by Problems - 19.02.2014, 21:04
Re: Problem - by Konstantinos - 19.02.2014, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)