17.03.2018, 05:45
For more detailed reporting, you can #include crashdetect while compiling and also compile with the -d3 flag. Regardless, your issue is this:
65535 is the definition for INVALID_PLAYER_ID, which is what is being passed to this function. Because OldMoney and NewMoney likely only go up to MAX_PLAYERS, this causes it to attempt to access data out of range.
First you need to figure out why it is being called with INVALID_PLAYER_ID, and secondly, you can add an IsPlayerConnected check (although that is a workaround and doesn't explain why it is being called in the first place) at the top of the function and stop further execution through returning 0 if not connected.
Код:
(65535, 2500)
First you need to figure out why it is being called with INVALID_PLAYER_ID, and secondly, you can add an IsPlayerConnected check (although that is a workaround and doesn't explain why it is being called in the first place) at the top of the function and stop further execution through returning 0 if not connected.