Crash
#3

For more detailed reporting, you can #include crashdetect while compiling and also compile with the -d3 flag. Regardless, your issue is this:
Код:
(65535, 2500)
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.
Reply


Messages In This Thread
Crash - by Hunud - 16.03.2018, 19:53
Re: Crash - by AdamsLT - 16.03.2018, 22:34
Re: Crash - by Abagail - 17.03.2018, 05:45

Forum Jump:


Users browsing this thread: 1 Guest(s)