24.01.2014, 20:43
Quote:
you dont need to update every x time, you need to update when field value changes, like player money, save it only when when player get/lose money.
GivePlayerMoneyEx(playerid,amount) { mysql_query... GivePlayerMoney(playerid,amount); } |
Or you can updeate the player's data only when he disconnects.
EDIT: In that case just set up a timer under OnGameModeInit.
Be sure to use threaded queries, and don't use them too often, or you will experience lag with large ammount of players online.