12.02.2018, 11:44
I don't see any problem with reading too much data since that doesn't write lock the database, it's most likely due to the fact that you open the database handle in OnGameModeInit and keep it open to be used every where in the gamemode, which usually cases problems like that, I'd rather open the database (and probably print a debug message) > execute the query (and free the result) > close the database.
The debug messages could be placed before every db_open call so it could be easier to track where exactly the problem occurs, for example:
The debug messages could be placed before every db_open call so it could be easier to track where exactly the problem occurs, for example:
PHP код:
print("OnPlayerConnect: db_open");