Skip to content

v7.13.4-RC1

Compare
Choose a tag to compare
@MrDave1999 MrDave1999 released this 24 Apr 03:16
· 930 commits to main since this release
6bb9582

Fixed Bugs

  • In the previous version, the connection to the database was left open until the application finished its execution. According to the official MySQL documentation, the connection can remain inactive for up to 8 hours, after that time, the connection is automatically closed. This caused that the SA-MP server can no longer perform any operation to the database, since the connection it had created was already "expired".
    The solution was simple, we created a global instance of type MySqlConnection and every time we need to perform an operation on the database, we open and close the connection.
    Although opening and closing the connection is an expensive operation, Connector/.NET uses internally pool connections, so we would be reusing the same connection.

  • A second error encountered was the following:
    Imagine that the remaining time of the game is 1 second but just in that moment, a player could die, so the player could appear in the new loaded map and play as if nothing.
    The solution was simple, if this scenario happens, the player will be automatically redirected to the class selection.