17.09.2018, 08:31
Quote:
|
The problem with 2 separate threaded queries is that i need to SELECT the data that i just inserted (inside of the callback of mysql_tquery), because i set default values (e.g. level: 1) in mysql table rather than hardcode it in the gamemode. I guess there is no cleaner way to do the thing other than hardcode default values for new-registered players and also keep default values in mysql tables? In that case all registered players' data is properly inserted into database and the same data is set on the server itself, and when a player logs in there must be 2 threaded queries (for `inventories` and for `players` tables) on whose callbacks all rows are inserted in appropriate variables on server, right?
|
No need to set default values from MySQL.


