• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Question] How to save samp player money on mysql (not on open.mp server)
#2
Create an integer column named 'money' in the 'accounts' table and store the player's money on disconnect.

query:
PHP Code:
UPDATE `accountsSET `money` = %d WHERE `id` = ? 

And load it when the player is logged into the account:
PHP Code:
new money;
cache_get_value_int(0"money"money);
GivePlayerMoney(playeridmoney); 
  Reply


Messages In This Thread
RE: How to save samp player money on mysql (not on open.mp server) - by Radical - 2023-11-16, 03:42 PM

Forum Jump: